java.lang.Object | |
↳ | com.google.android.gms.instantapps.InstantAppIntentData |
Data for resolved instant app Intent.
Meant for use by apps that want to launch instant apps, e.g. web browsers.
See also:
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
InstantAppIntentData.MatchResult | Denotes an enumeration of possible results for match a URL to an instant app. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | RESULT_LAUNCH_OK | URL can be launched | |||||||||
int | RESULT_NO_LAUNCH | URL could not be launched for an unspecified reason | |||||||||
int | RESULT_NO_LAUNCH_HOLDBACK | URL could have been launched but was withheld due to a mobile holdback from dev console | |||||||||
int | RESULT_USER_PREFERS_BROWSER | URL can be launched but the user prefers to use the browser so further consent is necessary |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the Activity Intent used to start the instant app.
| |||||||||||
Returns the result for the match attempt of the given URL.
| |||||||||||
Returns the package name of the instant app if one exists for the URL.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
URL can be launched
URL could not be launched for an unspecified reason
URL could have been launched but was withheld due to a mobile holdback from dev console
URL can be launched but the user prefers to use the browser so further consent is necessary
Retrieve the Activity Intent used to start the instant app. Returns null if an instant app does not exist for the URL or if instant apps are disabled. A non-null return value does not guarantee existence of an instant app for the URL.
The caller should add the EXTRA_REFERRER
extra to the Intent, with the Uri
of the referrer web page, if available, respecting its referrer policy. If the
referrer value originates within or is validated by the caller then EXTRA_IS_REFERRER_TRUSTED
extra may be set true.
For clicks within the caller, the EXTRA_TRUSTED_REFERRER_PKG
should be set
to the package name of the caller. In other cases, this extra should be set only if the caller
can validate the package name of the originator of the launch.
Returns | |
---|---|
Intent |
the Intent to attempt the start of an instant app or null if an instant app can't be run for this URL. |
Returns the result for the match attempt of the given URL.
Returns | |
---|---|
int |
Returns the package name of the instant app if one exists for the URL. Otherwise, null
.
Returns | |
---|---|
String |
Parameters | |
---|---|
dest |
Parcel |
flags |
int |