DynamicLink.SocialMetaTagParameters.Builder

class DynamicLink.SocialMetaTagParameters.Builder


Builder for social meta-tag parameters.

Summary

Public constructors

Create social meta-tag parameter builder.

Public functions

DynamicLink.SocialMetaTagParameters

Build SocialMetaTagParameters for use with setSocialMetaTagParameters.

String
Uri
String
DynamicLink.SocialMetaTagParameters.Builder
setDescription(description: String)

Sets the meta-tag description.

DynamicLink.SocialMetaTagParameters.Builder
setImageUrl(imageUrl: Uri)

Sets the meta-tag image link.

DynamicLink.SocialMetaTagParameters.Builder
setTitle(title: String)

Sets the meta-tag title.

Public constructors

Builder

Builder()

Create social meta-tag parameter builder.

Public functions

build

fun build(): DynamicLink.SocialMetaTagParameters

Build SocialMetaTagParameters for use with setSocialMetaTagParameters.

getDescription

fun getDescription(): String
Returns
String

the meta-tag description.

getImageUrl

fun getImageUrl(): Uri
Returns
Uri

the meta-tag image link.

getTitle

fun getTitle(): String
Returns
String

the meta-tag title.

setDescription

fun setDescription(description: String): DynamicLink.SocialMetaTagParameters.Builder

Sets the meta-tag description.

Parameters
description: String

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

setImageUrl

fun setImageUrl(imageUrl: Uri): DynamicLink.SocialMetaTagParameters.Builder

Sets the meta-tag image link.

Parameters
imageUrl: Uri

The URL to an image related to this link.

setTitle

fun setTitle(title: String): DynamicLink.SocialMetaTagParameters.Builder

Sets the meta-tag title.

Parameters
title: String

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