@RequiresApi(value = Build.VERSION_CODES.S)
public final 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 methods

createEnterpriseGlobalSearchSessionAsync

Added in 1.1.0-alpha06
@RequiresApi(value = Build.VERSION_CODES.VANILLA_ICE_CREAM)
public static @NonNull ListenableFuture<EnterpriseGlobalSearchSessioncreateEnterpriseGlobalSearchSessionAsync(
    @NonNull PlatformStorage.GlobalSearchContext context
)

Opens a new EnterpriseGlobalSearchSession on this storage.

createGlobalSearchSessionAsync

Added in 1.1.0-alpha06
public static @NonNull ListenableFuture<GlobalSearchSessioncreateGlobalSearchSessionAsync(
    @NonNull PlatformStorage.GlobalSearchContext context
)

Opens a new GlobalSearchSession on this storage.

createSearchSessionAsync

Added in 1.1.0-alpha06
public static @NonNull ListenableFuture<AppSearchSessioncreateSearchSessionAsync(@NonNull PlatformStorage.SearchContext context)

Opens a new AppSearchSession on this storage.

Parameters
@NonNull PlatformStorage.SearchContext context

The SearchContext contains all information to create a new AppSearchSession