Builder for ShareToMessengerParams.
Extends: | Object |
Package: | messenger |
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()
getMimeType()
Gets the mime type of the content. See ShareToMessengerParams.VALID_MIME_TYPES for what mime types are supported.
public String getMimeType()
setMetaData(String)
Sets the metadata to attach to the content to shared. See developer docs for more info.
public ShareToMessengerParamsBuilder setMetaData(String metaData)
Parameter | Description |
---|---|
metaData | The metadata to attach to the message |
getMetaData()
Gets the metadata to attach to the content to shared. See developer docs for more info.
public String getMetaData()
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 |
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()
build()
Builds the parameter object.
public ShareToMessengerParams build()