DynamicLink.SocialMetaTagParameters.Builder

public final class DynamicLink.SocialMetaTagParameters.Builder


Builder for social meta-tag parameters.

Summary

Public constructors

Create social meta-tag parameter builder.

Public constructors

Builder

public Builder()

Create social meta-tag parameter builder.

Public methods

build

public @NonNull DynamicLink.SocialMetaTagParameters build()

Build SocialMetaTagParameters for use with setSocialMetaTagParameters.

getDescription

public @NonNull String getDescription()
Returns
@NonNull String

the meta-tag description.

getImageUrl

public @NonNull Uri getImageUrl()
Returns
@NonNull Uri

the meta-tag image link.

getTitle

public @NonNull String getTitle()
Returns
@NonNull String

the meta-tag title.

setDescription

public @NonNull DynamicLink.SocialMetaTagParameters.Builder setDescription(@NonNull String description)

Sets the meta-tag description.

Parameters
@NonNull String description

The description to use when the Dynamic Link is shared in a social post.

setImageUrl

public @NonNull DynamicLink.SocialMetaTagParameters.Builder setImageUrl(@NonNull Uri imageUrl)

Sets the meta-tag image link.

Parameters
@NonNull Uri imageUrl

The URL to an image related to this link.

setTitle

public @NonNull DynamicLink.SocialMetaTagParameters.Builder setTitle(@NonNull String title)

Sets the meta-tag title.

Parameters
@NonNull String title

The title to use when the Dynamic Link is shared in a social post.