Android SDK Version
- AccessToken
- AccessToken.AccessTokenCreationCallback
- AccessToken.AccessTokenRefreshCallback
- AccessTokenManager
- AccessTokenSource
- AccessTokenTracker
- AddressFilterManager
- All
- AppEvent
- AppEventsConstants
- AppEventsLogger
- AppEventsLogger.FlushBehavior
- AppEventsLogger.ProductAvailability
- AppEventsLogger.ProductCondition
- AppEventsManager
- AppGroupCreationContent
- AppGroupCreationContent.AppGroupPrivacy
- AppGroupCreationContent.Builder
- AppInviteContent
- AppInviteContent.Builder
- AppInviteContent.Builder.Destination
- AppInviteDialog
- AppInviteDialog.Result
- AppLinkData
- AppLinkData.CompletionHandler
- AppLinks
- CallbackManager
- CallbackManager.Factory
- CameraEffectArguments
- CameraEffectArguments.Builder
- CameraEffectTextures
- CameraEffectTextures.Builder
- CodelessLoggingEventListener
- CodelessLoggingEventListener.AutoLoggingOnClickListener
- CodelessLoggingEventListener.AutoLoggingOnItemClickListener
- CodelessManager
- Common
- Core
- CreateAppGroupDialog
- CreateAppGroupDialog.Result
- CurrentAccessTokenExpirationBroadcastReceiver
- CurrentPlaceFeedbackRequestParams
- CurrentPlaceFeedbackRequestParams.Builder
- CurrentPlaceRequestParams
- CurrentPlaceRequestParams.Builder
- CurrentPlaceRequestParams.ConfidenceLevel
- CurrentPlaceRequestParams.ScanMode
- CustomTabActivity
- CustomTabLoginMethodHandler
- CustomTabMainActivity
- DefaultAudience
- DeviceAuthDialog
- DeviceLoginButton
- DeviceLoginManager
- DeviceShareButton
- DeviceShareDialog
- DeviceShareDialog.Result
- EventDeactivationManager
- FacebookActivity
- FacebookAppLinkResolver
- FacebookAuthorizationException
- FacebookBroadcastReceiver
- FacebookButtonBase
- FacebookCallback
- FacebookContentProvider
- FacebookDialog
- FacebookDialogException
- FacebookException
- FacebookGraphResponseException
- FacebookOperationCanceledException
- FacebookRequestError
- FacebookRequestError.Category
- FacebookSdk
- FacebookSdk.InitializeCallback
- FacebookSdkNotInitializedException
- FacebookServiceException
- FlushResult
- GameRequestContent
- GameRequestContent.ActionType
- GameRequestContent.Builder
- GameRequestContent.Filters
- GameRequestDialog
- GameRequestDialog.Result
- GraphRequest
- GraphRequest.Callback
- GraphRequest.GraphJSONArrayCallback
- GraphRequest.GraphJSONObjectCallback
- GraphRequest.OnProgressCallback
- GraphRequest.ParcelableResourceWithMimeType
- GraphRequestAsyncTask
- GraphRequestBatch
- GraphRequestBatch.Callback
- GraphRequestBatch.OnProgressCallback
- GraphResponse
- GraphResponse.PagingDirection
- HttpMethod
- InternalAppEventsLogger
- JoinAppGroupDialog
- JoinAppGroupDialog.Result
- LikeView
- LikeView.AuxiliaryViewPosition
- LikeView.HorizontalAlignment
- LikeView.ObjectType
- LikeView.OnErrorListener
- LikeView.Style
- LoggingBehavior
- Login
- LoginBehavior
- LoginButton
- LoginButton.ToolTipMode
- LoginFragment
- LoginManager
- LoginResult
- LoginStatusCallback
- MessageDialog
- Messenger
- MessengerThreadParams
- MessengerThreadParams.Origin
- MessengerUtils
- MetadataIndexer
- Model
- ModelManager
- PlaceFields
- PlaceInfoRequestParams
- PlaceInfoRequestParams.Builder
- PlaceManager
- PlaceManager.LocationError
- PlaceManager.OnRequestReadyCallback
- Places
- PlaceSearchRequestParams
- PlaceSearchRequestParams.Builder
- Profile
- ProfileManager
- ProfilePictureView
- ProfilePictureView.OnErrorListener
- ProfileTracker
- RCTCodelessLoggingEventListener
- RCTCodelessLoggingEventListener.AutoLoggingOnTouchListener
- RestrictiveDataManager
- SendButton
- Share
- ShareApi
- ShareBuilder
- ShareButton
- ShareButtonBase
- ShareCameraEffectContent
- ShareCameraEffectContent.Builder
- ShareContent
- ShareContent.Builder
- ShareDialog
- ShareDialog.Mode
- ShareGraphRequest
- ShareHashtag
- ShareHashtag.Builder
- ShareLinkContent
- ShareLinkContent.Builder
- ShareMedia
- ShareMedia.Builder
- ShareMedia.Type
- ShareMediaContent
- ShareMediaContent.Builder
- ShareMessengerActionButton
- ShareMessengerActionButton.Builder
- ShareMessengerGenericTemplateContent
- ShareMessengerGenericTemplateContent.Builder
- ShareMessengerGenericTemplateContent.ImageAspectRatio
- ShareMessengerGenericTemplateElement
- ShareMessengerGenericTemplateElement.Builder
- ShareMessengerMediaTemplateContent
- ShareMessengerMediaTemplateContent.Builder
- ShareMessengerMediaTemplateContent.MediaType
- ShareMessengerOpenGraphMusicTemplateContent
- ShareMessengerOpenGraphMusicTemplateContent.Builder
- ShareMessengerURLActionButton
- ShareMessengerURLActionButton.Builder
- ShareMessengerURLActionButton.WebviewHeightRatio
- ShareModel
- ShareModelBuilder
- ShareOpenGraphAction
- ShareOpenGraphAction.Builder
- ShareOpenGraphContent
- ShareOpenGraphContent.Builder
- ShareOpenGraphObject
- ShareOpenGraphObject.Builder
- ShareOpenGraphValueContainer
- ShareOpenGraphValueContainer.Builder
- SharePhoto
- SharePhoto.Builder
- SharePhotoContent
- SharePhotoContent.Builder
- Sharer
- Sharer.Result
- ShareStoryContent
- ShareStoryContent.Builder
- ShareToMessengerParams
- ShareToMessengerParamsBuilder
- ShareVideo
- ShareVideo.Builder
- ShareVideoContent
- ShareVideoContent.Builder
- SuggestedEventsManager
- ToolTipPopup
- ToolTipPopup.Style
- UserDataStore
- Utils
- ViewIndexer
- ViewOnClickListener
- WebDialog
- java.lang.Object
- com.facebook.share.model.ShareContent.Builder<ShareMessengerMediaTemplateContent,ShareMessengerMediaTemplateContent.Builder>
- com.facebook.share.model.ShareMessengerMediaTemplateContent.Builder
All Implemented Interfaces:
Enclosing class:
public static class ShareMessengerMediaTemplateContent.Builder extends ShareContent.Builder<ShareMessengerMediaTemplateContent,ShareMessengerMediaTemplateContent.Builder>
Builder for the
ShareMessengerMediaTemplateContent
interface.Method Summary
Modifier and Type | Method and Description |
---|---|
ShareMessengerMediaTemplateContent | build() Builds the object. |
ShareMessengerMediaTemplateContent.Builder | readFrom(ShareMessengerMediaTemplateContent content) Reads the values from a ShareModel into the builder. |
ShareMessengerMediaTemplateContent.Builder | setAttachmentId(java.lang.String attachmentId) Set the attachmentID of the item to share. |
ShareMessengerMediaTemplateContent.Builder | setButton(ShareMessengerActionButton button) Set the action button to show below the media. |
ShareMessengerMediaTemplateContent.Builder | setMediaType(ShareMessengerMediaTemplateContent.MediaType mediaType) Set the media type (image or video) for this content. |
ShareMessengerMediaTemplateContent.Builder | setMediaUrl(Uri mediaUrl) Set the Facebook url for this piece of media. |
Methods inherited from class com.facebook.share.model.
setContentUrl, setPageId, setPeopleIds, setPlaceId, setRef, setShareHashtag
Method Detail
setMediaType
public ShareMessengerMediaTemplateContent.Builder setMediaType(ShareMessengerMediaTemplateContent.MediaType mediaType)
Set the media type (image or video) for this content. This must match the media type specified in the attachmentID/mediaURL to avoid an error when sharing. Defaults to image.
setAttachmentId
public ShareMessengerMediaTemplateContent.Builder setAttachmentId(java.lang.String attachmentId)
Set the attachmentID of the item to share. Optional, but either attachmentID or mediaURL must be specified.
setMediaUrl
public ShareMessengerMediaTemplateContent.Builder setMediaUrl(Uri mediaUrl)
Set the Facebook url for this piece of media. External urls will not work; this must be a Facebook url.Optional, but either attachmentID or mediaURL must be specified. See https://developers.facebook.com/docs/messenger-platform/send-messages/template/media for details.
setButton
public ShareMessengerMediaTemplateContent.Builder setButton(ShareMessengerActionButton button)
Set the action button to show below the media.
readFrom
public ShareMessengerMediaTemplateContent.Builder readFrom(ShareMessengerMediaTemplateContent content)
Description copied from interface:
ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
readFrom
in interface ShareModelBuilder<ShareMessengerMediaTemplateContent,ShareMessengerMediaTemplateContent.Builder>
Overrides:
readFrom
in class ShareContent.Builder<ShareMessengerMediaTemplateContent,ShareMessengerMediaTemplateContent.Builder>
Parameters:
content
- The source ShareModelReturns:
The builder.
build
public ShareMessengerMediaTemplateContent build()
Description copied from interface:
ShareBuilder
Builds the object.
Returns:
The built object.