Android SDK Version
Method Summary
Modifier and TypeMethodDescription
UrigetUri() Gets the URI of the local image, video, or audio clip to send to messenger.
StringgetMimeType() Gets the mime type of the content.
ShareToMessengerParamsBuildersetMetaData(String metaData) Sets the metadata to attach to the content to shared.
StringgetMetaData() Gets the metadata to attach to the content to shared.
ShareToMessengerParamsBuildersetExternalUri(Uri externalUri) Sets an external URI that Messenger can use to download the content on Facebook's serversinstead of requiring the Messenger application to upload the content.
UrigetExternalUri() Gets an external URI that Messenger can use to download the content on Facebook's serversinstead of requiring the Messenger application to upload the content.
ShareToMessengerParamsbuild() Builds the parameter object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getUri

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

getMimeType

StringgetMimeType()
Gets the mime type of the content. See VALID_MIME_TYPES for whatmime types are supported.

setMetaData

ShareToMessengerParamsBuildersetMetaData(String metaData)
Sets the metadata to attach to the content to shared. See developer docs for more info.
Parameters:
metaData - the metadata to attach to the message

getMetaData

StringgetMetaData()
Gets the metadata to attach to the content to shared. See developer docs for more info.

setExternalUri

ShareToMessengerParamsBuildersetExternalUri(Uri externalUri)
Sets an external URI that Messenger can use to download the content on Facebook's serversinstead of requiring the Messenger application to upload the content. The content returned bythe this URI must be exactly the same as the content specified by getUri. If thecontent is different, Messenger may fail to send the content. See developer docs for more info.
Parameters:
externalUri - the external uri to set

getExternalUri

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

build

ShareToMessengerParamsbuild()
Builds the parameter object.