java.lang.Object | |
↳ | com.google.firebase.dynamiclinks.PendingDynamicLinkData |
Provides accessor methods to dynamic links data.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a PendingDynamicLinkData which can be used for testing.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The time that the user clicked on the dynamic link.
| |||||||||||
Return the link parameter of the dynamic link.
| |||||||||||
The minimum app version requested to process the dynamic link that can be compared directly
with
versionCode . | |||||||||||
Provide an intent to update the app to the version in the Play Store.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create a PendingDynamicLinkData which can be used for testing.
Parameters | |
---|---|
deepLink |
String : dynamic link deep link, can be null. |
minVersion |
int : app minimum version. 0 if no minimum version required. |
clickTimestamp |
long : timestamp of when the dynamic link was clicked. If zero, will be current
time.
|
redirectUrl |
Uri |
The time that the user clicked on the dynamic link. This can be used to determine the amount of time that has passed since the user selected the link until the app is launched.
Returns | |
---|---|
long |
The number of milliseconds that have elapsed since January 1, 1970. |
Return the link parameter of the dynamic link.
This link will be set as data in the launch Intent, see setData(Uri)
, which
will match IntentFilter
to deep link into the app.
Returns | |
---|---|
Uri |
The deep link if it exists, null otherwise. |
The minimum app version requested to process the dynamic link that can be compared directly
with versionCode
. If the minimum version code is higher
than the installed app version code, the app can upgrade using getUpdateAppIntent(Context)
.
Returns | |
---|---|
int |
minimum version code set on the dynamic link, or 0 if not specified. |
Provide an intent to update the app to the version in the Play Store.
An intent is returned to be used as a parameter to startActivity(Intent)
to launch the Play Store update flow for the app.
After update, if the user re-launches the app from the Play Store by selecting the displayed
Continue button then the deep link will be set as the data in the re-launch intent and will
launch any Activity with an IntentFilter
that matches the deeplink.
This is the same as the new install flow. The dynamic link returned during initial launch will
not be available from getDynamicLink(Intent)
during the update
re-launch.
If the minimum version required by the dynamic link is not greater than the currently installed version, then null is returned.
Parameters | |
---|---|
context |
Context |
Returns | |
---|---|
Intent |
- An Intent that will launch the Play Store to update the app, or null if the
dynamic link minimum version code is not greater than the installed version.
|