Android SDK Version
Enclosing class:

public static final class ShareLinkContent.Builder
extends ShareContent.Builder<ShareLinkContent,ShareLinkContent.Builder>
Builder for the ShareLinkContent interface.
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
ShareLinkContentbuild()
Builds the object.
ShareLinkContent.BuilderreadFrom(ShareLinkContent model)
Reads the values from a ShareModel into the builder.
ShareLinkContent.BuildersetContentDescription(java.lang.String contentDescription)
Deprecated. 
As of Graph API 2.9 this field is deprecated and may not function as expected. Set the contentDescription of the link. For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations.
ShareLinkContent.BuildersetContentTitle(java.lang.String contentTitle)
Deprecated. 
As of Graph API 2.9 this field is deprecated and may not function as expected. For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations. Set the contentTitle to display for this link.
ShareLinkContent.BuildersetImageUrl(Uri imageUrl)
Deprecated. 
As of Graph API 2.9 this field is deprecated and may not function as expected. For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations. Set the URL of a picture to attach to this content.
ShareLinkContent.BuildersetQuote(java.lang.String quote)
Set the quote to display for this link.
Methods inherited from class com.facebook.share.model.
setContentUrl, setPageId, setPeopleIds, setPlaceId, setRef, setShareHashtag
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

Builder

public Builder()
Method Detail

setContentDescription

@Deprecated
public ShareLinkContent.Builder setContentDescription(java.lang.String contentDescription)
Deprecated. As of Graph API 2.9 this field is deprecated and may not function as expected. Set the contentDescription of the link. For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations.
Parameters:
contentDescription - The contentDescription of the link.
Returns:
The builder.

setContentTitle

@Deprecated
public ShareLinkContent.Builder setContentTitle(java.lang.String contentTitle)
Deprecated. As of Graph API 2.9 this field is deprecated and may not function as expected. For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations. Set the contentTitle to display for this link.
Parameters:
contentTitle - The link contentTitle.
Returns:
The builder.

setImageUrl

@Deprecated
public ShareLinkContent.Builder setImageUrl(Uri imageUrl)
Deprecated. As of Graph API 2.9 this field is deprecated and may not function as expected. For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations. Set the URL of a picture to attach to this content.
Parameters:
imageUrl - The network URL of an image.
Returns:
The builder.

setQuote

public ShareLinkContent.Builder setQuote(java.lang.String quote)
Set the quote to display for this link.
Parameters:
quote - The text quoted from the link.
Returns:
The builder.

build

public ShareLinkContent build()
Description copied from interface: ShareBuilder
Builds the object.
Returns:
The built object.

readFrom

public ShareLinkContent.Builder readFrom(ShareLinkContent model)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
Overrides:
Parameters:
model - The source ShareModel
Returns:
The builder.