Android SDK Version
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
ShareMediaContent.BuilderaddMedia(java.util.List<ShareMedia> media)
Adds multiple media to the content.
ShareMediaContent.BuilderaddMedium(ShareMedia medium)
Adds a medium to the content.
ShareMediaContentbuild()
Builds the object.
ShareMediaContent.BuilderreadFrom(ShareMediaContent model)
Reads the values from a ShareModel into the builder.
ShareMediaContent.BuildersetMedia(java.util.List<ShareMedia> media)
Replaces the media for the builder.
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

addMedium

public ShareMediaContent.Builder addMedium(ShareMedia medium)
Adds a medium to the content.
Parameters:
medium - ShareMedia to add.
Returns:
The builder.

addMedia

public ShareMediaContent.Builder addMedia(java.util.List<ShareMedia> media)
Adds multiple media to the content.
Parameters:
media - List of ShareMedia to add.
Returns:
The builder.

build

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

readFrom

public ShareMediaContent.Builder readFrom(ShareMediaContent 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.

setMedia

public ShareMediaContent.Builder setMedia(java.util.List<ShareMedia> media)
Replaces the media for the builder.
Parameters:
media - List of ShareMedia to add.
Returns:
The builder.