Facebook
ShareToMessengerParamsBuilder - Documentation - Meta for Developers
ShareToMessengerParamsBuilder

Builder for ShareToMessengerParams.

Extends: Object
Package: messenger
Instance Methods
getUri()

Gets the URI of the local image, video, or audio clip to send to messenger. Must be a file://, content://, or res:// URI.

public Uri getUri()
Returns
The uri
getMimeType()

Gets the mime type of the content. See ShareToMessengerParams.VALID_MIME_TYPES for what mime types are supported.

public String getMimeType()
Returns
The mime type
setExternalUri(Uri)

Sets an external URI that Messenger can use to download the content on Facebook's servers instead of requiring the Messenger application to upload the content. The content returned by the this URI must be exactly the same as the content specified by ShareToMessengerParamsBuilder.getUri(). If the content is different, Messenger may fail to send the content. See developer docs for more info.

public ShareToMessengerParamsBuilder setExternalUri( Uri externalUri )
Parameter Description
externalUri The external uri to set
Returns
This builder
getExternalUri()

Gets an external URI that Messenger can use to download the content on Facebook's servers instead of requiring the Messenger application to upload the content. The content returned by the this URI must be exactly the same as the content specified by ShareToMessengerParamsBuilder.getUri(). If the content is different, Messenger may fail to send the content. See developer docs for more info.

public Uri getExternalUri()
Returns
The external URI
build()

Builds the parameter object.

public ShareToMessengerParams build()
Returns
The parameter object
Design a Mobile Website
View Site in Mobile | Classic
Share by: