PlatformStorage
@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 |
|
Contains information about how to create the search session. |
|
Builder for |
Public functions |
|
|---|---|
java-static ListenableFuture<EnterpriseGlobalSearchSession!> |
@RequiresApi(value = Build.VERSION_CODES.VANILLA_ICE_CREAM)Opens a new |
java-static ListenableFuture<GlobalSearchSession!> |
Opens a new |
java-static ListenableFuture<AppSearchSession!> |
Opens a new |
java-static Features |
@ExperimentalAppSearchApiReturns the |
Public functions
createEnterpriseGlobalSearchSessionAsync
@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
java-static fun createGlobalSearchSessionAsync(
context: PlatformStorage.GlobalSearchContext
): ListenableFuture<GlobalSearchSession!>
Opens a new GlobalSearchSession on this storage.
createSearchSessionAsync
java-static fun createSearchSessionAsync(context: PlatformStorage.SearchContext): ListenableFuture<AppSearchSession!>
Opens a new AppSearchSession on this storage.
| Parameters | |
|---|---|
context: PlatformStorage.SearchContext |
The |
getFeatures
@ExperimentalAppSearchApi
java-static fun getFeatures(context: Context): Features
Returns the Features to check for the availability of certain features for this AppSearch storage.