DynamicLink.AndroidParameters.Builder

public final class DynamicLink.AndroidParameters.Builder


Builder for Android parameters.

Summary

Public constructors

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

Builder(@NonNullString packageName)

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

Public methods

@NonNullDynamicLink.AndroidParameters

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNullUri

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

int

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNullDynamicLink.AndroidParameters.Builder
setFallbackUrl(@NonNullUri fallbackUrl)

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

@NonNullDynamicLink.AndroidParameters.Builder
setMinimumVersion(int minimumVersion)

This method is deprecated.

Firebase Dynamic Links is deprecated and should not be used in new projects.

Public constructors

Builder

public 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
java.lang.IllegalStateException java.lang.IllegalStateException

if FirebaseApp has not been initialized correctly.

Builder

public Builder(@NonNullString packageName)

Create Android parameters builder.

Parameters
@NonNullString 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

build

public @NonNullDynamicLink.AndroidParameters build()

Build AndroidParameters for use with setAndroidParameters.

getFallbackUrl

public @NonNullUri getFallbackUrl()

Returns the link to open on Android if the app isn't installed.

Returns
@NonNullUri

the link to open on Android if the app isn't installed.

getMinimumVersion

public int getMinimumVersion()

Returns the minimum version of your app that can open the link.

Returns
int

the minimum version of your app that can open the link.

setFallbackUrl

public @NonNullDynamicLink.AndroidParameters.Builder setFallbackUrl(@NonNullUri 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
@NonNullUri fallbackUrl

The link to open on Android if the app is not installed.

setMinimumVersion

public @NonNullDynamicLink.AndroidParameters.Builder setMinimumVersion(int minimumVersion)

Sets the versionCode of the minimum version of your app that can open the link.

Parameters
int minimumVersion

The minimum version.