java.lang.Object |
↳ |
com.google.firebase.dynamiclinks.DynamicLink.Builder |
Class Overview
Builder for creating Dynamic Links.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
public
DynamicLink
buildDynamicLink
()
Creates a Dynamic Link from the parameters.
Creates a shortened Dynamic Link from the parameters.
Throws |
IllegalArgumentException |
if the FDL domain and api key are not set. Set FDL domain
with setDynamicLinkDomain(String) . Ensure that google-services.json file
is setup for the app if the api key is not set.
|
public
Task<ShortDynamicLink>
buildShortDynamicLink
(int suffix)
Creates a shortened Dynamic Link from the parameters.
Parameters |
suffix |
int :
The desired length of the Dynamic Link. One of UNGUESSABLE or
SHORT . |
Throws |
IllegalArgumentException |
if the FDL domain and api key are not set. Set FDL domain
with setDynamicLinkDomain(String) . Ensure that google-services.json file
is setup for the app if the api key is not set.
|
Sets the Android parameters.
Parameters |
androidParameters |
DynamicLink.AndroidParameters :
The AndroidParameters from build() .
|
public
DynamicLink.Builder
setDynamicLinkDomain
(String dynamicLinkDomain)
Sets the domain (of the form "xyz.app.goo.gl") to use for this Dynamic Link.
Parameters |
dynamicLinkDomain |
String :
The target project's Dynamic Links domain. You can find this value
in the Dynamic Links section of the Firebase console.
|
Sets the Google Analytics parameters.
Parameters |
googleAnalyticsParameters |
DynamicLink.GoogleAnalyticsParameters :
The GoogleAnalyticsParameters from build() .
|
Sets the iOS parameters.
Parameters |
iosParameters |
DynamicLink.IosParameters :
The IosParameters from build() .
|
Sets the iTunes Connect App Analytics parameters.
Parameters |
itunesConnectAnalyticsParameters |
DynamicLink.ItunesConnectAnalyticsParameters :
The ItunesConnectAnalyticsParameters from build() .
|
Set the deep link.
Parameters |
link |
Uri :
The link your app will open. You can specify any URL your app can handle, such as
a link to your app's content, or a URL that initiates some app-specific logic such as
crediting the user with a coupon, or displaying a specific welcome screen. This link must
be a well-formatted URL, be properly URL-encoded, and use the HTTP or HTTPS scheme.
|
Set the long Dynamic Link. This overrides all other parameters.
Parameters |
longLink |
Uri :
The link your app will open. You can specify any URL your app can handle,
such as a link to your app's content, or a URL that initiates some app-specific logic
such as crediting the user with a coupon, or displaying a specific welcome screen. This
link must be a well-formatted URL, be properly URL-encoded, and use the HTTP or HTTPS
scheme.
|
Sets the social meta-tag parameters.
Parameters |
socialMetaTagParameters |
DynamicLink.SocialMetaTagParameters :
The SocialMetaTagParameters from build() .
|