EnterpriseGlobalSearchSession
@RequiresFeature(enforcement = "androidx.appsearch.app.Features#isFeatureSupported", name = Features.ENTERPRISE_GLOBAL_SEARCH_SESSION)
interface EnterpriseGlobalSearchSession : ReadOnlyGlobalSearchSession
Provides a connection to all enterprise (work profile) AppSearch databases the querying application has been granted access to.
This session can be created from any user profile but will only properly return results when created from the main profile. If the user is not the main profile or an associated work profile does not exist, queries will still successfully complete but with empty results.
Schemas must be explicitly tagged enterprise and may require additional permissions to be visible from an enterprise session. Retrieved documents may also have certain fields restricted or modified unlike if they were retrieved directly from GlobalSearchSession on the work profile.
All implementations of this interface must be thread safe.
| See also | |
|---|---|
GlobalSearchSession |
Summary
Inherited functions |
||||||||
|---|---|---|---|---|---|---|---|---|
|