java.lang.Object | |
↳ | com.google.android.gms.instantapps.InstantApps |
Entry point for Instant Apps APIs.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API | Token to pass to addApi(Api)
to enable InstantAppsApi. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a helper for Activity functionality that can be used to retrieve information about
running instant apps or installed apps.
| |||||||||||
Creates a new instance of
InstantAppsClient for use in an Activity . | |||||||||||
Creates a new instance of
InstantAppsClient for use in a non-activity Context . | |||||||||||
Returns an API for launching instant apps by URL.
| |||||||||||
Returns a helper for PackageManager functionality that can be used to retrieve information
about running instant apps or installed apps.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Token to pass to addApi(Api)
to enable InstantAppsApi.
Returns a helper for Activity functionality that can be used to retrieve information about running instant apps or installed apps.
Information about instant apps will only be returned for currently running instant apps that
include the package name of the calling application in a <instant:uses-app>
element
under the <application>
element in their manifest.
Parameters | |
---|---|
activity |
Activity : the activity on which to query information.
|
Returns | |
---|---|
ActivityCompat |
Creates a new instance of InstantAppsClient
for use in an Activity
. Error
resolutions will be automatically launched from the provided Activity, displaying UI when
necessary.
Parameters | |
---|---|
activity |
Activity |
Returns | |
---|---|
InstantAppsClient |
Creates a new instance of InstantAppsClient
for use in a non-activity Context
.
Error resolutions will be automatically launched from the provided Context, displaying system
tray notifications when necessary.
Parameters | |
---|---|
context |
Context |
Returns | |
---|---|
InstantAppsClient |
Returns an API for launching instant apps by URL.
This method will cache a Launcher instance for the application context; you can invoke this method in many places in your code (without having to pass around a Launcher interface) without incurring extra allocations.
Parameters | |
---|---|
context |
Context : the current context
|
Returns | |
---|---|
Launcher |
Returns a helper for PackageManager functionality that can be used to retrieve information about running instant apps or installed apps.
This method will cache a PackageManagerCompat instance for the application context; you can invoke this method in many places in your code (without having to pass around a PackageManagerCompat interface) without incurring extra allocations.
Parameters | |
---|---|
context |
Context : the current context
|
Returns | |
---|---|
PackageManagerCompat |