Android SDK Version


public final class ShareToMessengerParams
Parameters used by MessengerUtils for sending the media to Messenger to share. See developer docs for more info.
Nested Class Summary
Modifier and TypeClassDescription
public classShareToMessengerParams.Companion
Field Summary
Modifier and TypeFieldDescription
private final Uriuri
private final StringmimeType
private final StringmetaData
private final UriexternalUri
Method Summary
Modifier and TypeMethodDescription
final UrigetUri() The URI of the local image, video, or audio clip to send to messenger.
final StringgetMimeType() The mime type of the content.
final StringgetMetaData() The metadata to attach to the content to shared.
final UrigetExternalUri() 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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getUri

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

getMimeType

 final StringgetMimeType()
The mime type of the content. See .VALID_MIME_TYPES for what mime types are supported.

getMetaData

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

getExternalUri

 final UrigetExternalUri()
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 .uri. If the content is different, Messenger may fail to send the content. See developer docs for more info.