public static final class ShareLinkContent.Builder extends ShareContent.Builder<ShareLinkContent,ShareLinkContent.Builder>
ShareLinkContent
interface.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ShareLinkContent |
build()
Builds the object.
|
ShareLinkContent.Builder |
readFrom(ShareLinkContent model)
Reads the values from a ShareModel into the builder.
|
ShareLinkContent.Builder |
setContentDescription(java.lang.String contentDescription)
Set the contentDescription of the link.
|
ShareLinkContent.Builder |
setContentTitle(java.lang.String contentTitle)
Set the contentTitle to display for this link.
|
ShareLinkContent.Builder |
setImageUrl(android.net.Uri imageUrl)
Set the URL of a picture to attach to this content.
|
ShareLinkContent.Builder |
setQuote(java.lang.String quote)
Set the quote to display for this link.
|
setContentUrl, setPeopleIds, setPlaceId, setRef, setShareHashtag
public ShareLinkContent.Builder setContentDescription(@Nullable java.lang.String contentDescription)
contentDescription
- The contentDescription of the link.public ShareLinkContent.Builder setContentTitle(@Nullable java.lang.String contentTitle)
contentTitle
- The link contentTitle.public ShareLinkContent.Builder setImageUrl(@Nullable android.net.Uri imageUrl)
imageUrl
- The network URL of an image.public ShareLinkContent.Builder setQuote(@Nullable java.lang.String quote)
quote
- The text quoted from the link.public ShareLinkContent build()
ShareBuilder
public ShareLinkContent.Builder readFrom(ShareLinkContent model)
ShareModelBuilder
readFrom
in interface ShareModelBuilder<ShareLinkContent,ShareLinkContent.Builder>
readFrom
in class ShareContent.Builder<ShareLinkContent,ShareLinkContent.Builder>
model
- The source ShareModel