PlatformStorage

public final class PlatformStorage
extends Object

java.lang.Object
   ↳ androidx.appsearch.platformstorage.PlatformStorage


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

Summary

Nested classes

class PlatformStorage.GlobalSearchContext

Contains information relevant to creating a global search session. 

class PlatformStorage.SearchContext

Contains information about how to create the search session. 

Public methods

static ListenableFuture<GlobalSearchSession> createGlobalSearchSession(PlatformStorage.GlobalSearchContext context)

Opens a new GlobalSearchSession on this storage.

static ListenableFuture<AppSearchSession> createSearchSession(PlatformStorage.SearchContext context)

Opens a new AppSearchSession on this storage.

Inherited methods

Public methods

createGlobalSearchSession

public static ListenableFuture<GlobalSearchSession> createGlobalSearchSession (PlatformStorage.GlobalSearchContext context)

Opens a new GlobalSearchSession on this storage.

Parameters
context PlatformStorage.GlobalSearchContext

Returns
ListenableFuture<GlobalSearchSession>

createSearchSession

public static ListenableFuture<AppSearchSession> createSearchSession (PlatformStorage.SearchContext context)

Opens a new AppSearchSession on this storage.

Parameters
context PlatformStorage.SearchContext: The PlatformStorage.SearchContext contains all information to create a new AppSearchSession

Returns
ListenableFuture<AppSearchSession>