-
- All Implemented Interfaces:
-
com.facebook.share.ShareBuilder,com.facebook.share.model.ShareModelBuilder
public final class ShareOpenGraphContent.Builder extends ShareContent.Builder<ShareOpenGraphContent, ShareOpenGraphContent.Builder>
Builder for the com.facebook.share.model.ShareOpenGraphContent interface.
-
-
Field Summary
Fields Modifier and Type Field Description private ShareOpenGraphActionactionprivate StringpreviewPropertyName
-
Method Summary
Modifier and Type Method Description ShareOpenGraphContent.BuildersetAction(@Nullable() ShareOpenGraphAction action)Sets the Open Graph Action for the content. ShareOpenGraphContent.BuildersetPreviewPropertyName(@Nullable() String previewPropertyName)Sets the property name for the primary com.facebook.share.model.ShareOpenGraphObject in the action. ShareOpenGraphContentbuild()Builds the object. ShareOpenGraphContent.BuilderreadFrom(ShareOpenGraphContent model)Reads the values from a ShareModel into the builder. -
Methods inherited from class com.facebook.share.model.ShareContent.Builder
readFrom, setContentUrl, setPageId, setPeopleIds, setPlaceId, setRef, setShareHashtag -
Methods inherited from class com.facebook.share.model.ShareModelBuilder
readFrom -
Methods inherited from class com.facebook.share.ShareBuilder
build -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setAction
ShareOpenGraphContent.Builder setAction(@Nullable() ShareOpenGraphAction action)
Sets the Open Graph Action for the content.
- Parameters:
action- com.facebook.share.model.ShareOpenGraphAction
-
setPreviewPropertyName
ShareOpenGraphContent.Builder setPreviewPropertyName(@Nullable() String previewPropertyName)
Sets the property name for the primary com.facebook.share.model.ShareOpenGraphObject in the action.
- Parameters:
previewPropertyName- The property name for the preview object.
-
build
ShareOpenGraphContent build()
Builds the object.
-
readFrom
ShareOpenGraphContent.Builder readFrom(ShareOpenGraphContent model)
Reads the values from a ShareModel into the builder.
- Parameters:
model- The source ShareModel
-
-
-
-