DynamicLink.AndroidParameters.Builder

public static final class DynamicLink.AndroidParameters.Builder extends Object

Builder for Android parameters.

Public Constructor Summary

DynamicLink.AndroidParameters.Builder()
Create Android parameters builder, using the package name of the calling app.
DynamicLink.AndroidParameters.Builder(String packageName)
Create Android parameters builder.

Public Method Summary

DynamicLink.AndroidParameters
build()
Build AndroidParameters for use with setAndroidParameters(AndroidParameters).
DynamicLink.AndroidParameters.Builder
setFallbackUrl(Uri fallbackUrl)
Sets the link to open when the app isn't installed.
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.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.

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面