Builder for Android parameters.
Public Constructor Summary
DynamicLink.AndroidParameters.Builder()
Create Android parameters builder, using the package name of the calling app.
|
|
Public Method Summary
DynamicLink.AndroidParameters |
build()
Build AndroidParameters for use with
setAndroidParameters(AndroidParameters) .
|
Uri | |
int | |
DynamicLink.AndroidParameters.Builder | |
DynamicLink.AndroidParameters.Builder |
setMinimumVersion(int minimumVersion)
Sets the versionCode of the minimum version of your app that can open the link.
|
Inherited Method Summary
Public Constructors
public DynamicLink.AndroidParameters.Builder ()
Create Android parameters builder, using the package name of the calling app. The app must be connected to your project from the Overview page of the Firebase console.
Throws
IllegalStateException | if FirebaseApp has not been initialized correctly. |
---|
public DynamicLink.AndroidParameters.Builder (String packageName)
Create Android parameters builder.
Parameters
packageName | The package name of the Android app to use to open the link. The app must be connected to your project from the Overview page of the Firebase console. |
---|
Public Methods
public DynamicLink.AndroidParameters build ()
Build AndroidParameters for use with
setAndroidParameters(AndroidParameters)
.
public Uri getFallbackUrl ()
Returns
- the link to open on Android if the app isn't installed.
public int getMinimumVersion ()
Returns
- the minimum version of your app that can open the link.
public DynamicLink.AndroidParameters.Builder setFallbackUrl (Uri fallbackUrl)
Sets the link to open when the app isn't installed. Specify this to do something other than install your app from the Play Store when the app isn't installed, such as open the mobile web version of the content, or display a promotional page for your app.
Parameters
fallbackUrl | The link to open on Android if the app is not installed. |
---|
public DynamicLink.AndroidParameters.Builder setMinimumVersion (int minimumVersion)
Sets the versionCode of the minimum version of your app that can open the link.
Parameters
minimumVersion | The minimum version. |
---|