Builder for the ShareLinkContent interface.
扩展: | Builder |
应用安装包: | model |
setContentDescription(String)
Set the contentDescription of the link.
public Builder setContentDescription(String contentDescription)
参数 | 描述 |
---|---|
contentDescription | The contentDescription of the link. |
setContentTitle(String)
Set the contentTitle to display for this link.
public Builder setContentTitle(String contentTitle)
参数 | 描述 |
---|---|
contentTitle | The link contentTitle. |
setImageUrl(Uri)
Set the URL of a picture to attach to this content.
public Builder setImageUrl(Uri imageUrl)
参数 | 描述 |
---|---|
imageUrl | The network URL of an image. |
setQuote(String)
Set the quote to display for this link.
public Builder setQuote(String quote)
参数 | 描述 |
---|---|
quote | The text quoted from the link. |
build()
Builds the object.
public Object build()
build()
public ShareLinkContent build()
readFrom(ShareModel)
Reads the values from a ShareModel into the builder.
public ShareModelBuilder readFrom(ShareModel model)
参数 | 描述 |
---|---|
model | The source ShareModel |