DynamicLink.AndroidParameters.Builder

class DynamicLink.AndroidParameters.Builder


Builder for Android parameters.

Summary

Public constructors

This function is deprecated.

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

Builder(packageName: String)

This function is deprecated.

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

Public functions

DynamicLink.AndroidParameters

This function is deprecated.

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

Uri

This function is deprecated.

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

Int

This function is deprecated.

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

DynamicLink.AndroidParameters.Builder
setFallbackUrl(fallbackUrl: Uri)

This function is deprecated.

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

DynamicLink.AndroidParameters.Builder
setMinimumVersion(minimumVersion: Int)

This function is deprecated.

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

Public constructors

Builder

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

Builder(packageName: String)

Create Android parameters builder.

Parameters
packageName: String

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 functions

build

fun build(): DynamicLink.AndroidParameters

Build AndroidParameters for use with setAndroidParameters.

getFallbackUrl

fun getFallbackUrl(): Uri

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

Returns
Uri

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

getMinimumVersion

fun getMinimumVersion(): Int

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

fun setFallbackUrl(fallbackUrl: Uri): DynamicLink.AndroidParameters.Builder

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: Uri

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

setMinimumVersion

fun setMinimumVersion(minimumVersion: Int): DynamicLink.AndroidParameters.Builder

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

Parameters
minimumVersion: Int

The minimum version.