@RequiresApi(value = Build.VERSION_CODES.S)
class PlatformStorage


An AppSearch storage system which stores data in the central AppSearch service, available on Android S+.

Summary

Nested types

Contains information relevant to creating a global search session.

Builder for GlobalSearchContext objects.

Contains information about how to create the search session.

Builder for SearchContext objects.

Public functions

java-static ListenableFuture<EnterpriseGlobalSearchSession!>
@RequiresApi(value = Build.VERSION_CODES.VANILLA_ICE_CREAM)
createEnterpriseGlobalSearchSessionAsync(
    context: PlatformStorage.GlobalSearchContext
)

Opens a new EnterpriseGlobalSearchSession on this storage.

java-static ListenableFuture<GlobalSearchSession!>

Opens a new GlobalSearchSession on this storage.

java-static ListenableFuture<AppSearchSession!>

Opens a new AppSearchSession on this storage.

Public functions

createEnterpriseGlobalSearchSessionAsync

Added in 1.1.0-alpha06
@RequiresApi(value = Build.VERSION_CODES.VANILLA_ICE_CREAM)
java-static fun createEnterpriseGlobalSearchSessionAsync(
    context: PlatformStorage.GlobalSearchContext
): ListenableFuture<EnterpriseGlobalSearchSession!>

Opens a new EnterpriseGlobalSearchSession on this storage.

createGlobalSearchSessionAsync

Added in 1.1.0-alpha06
java-static fun createGlobalSearchSessionAsync(
    context: PlatformStorage.GlobalSearchContext
): ListenableFuture<GlobalSearchSession!>

Opens a new GlobalSearchSession on this storage.

createSearchSessionAsync

Added in 1.1.0-alpha06
java-static fun createSearchSessionAsync(context: PlatformStorage.SearchContext): ListenableFuture<AppSearchSession!>

Opens a new AppSearchSession on this storage.

Parameters
context: PlatformStorage.SearchContext

The SearchContext contains all information to create a new AppSearchSession