-
public class ShareToMessengerParamsBuilder
Builder for ShareToMessengerParams.
-
-
Method Summary
Modifier and Type Method Description Uri
getUri()
Gets the URI of the local image, video, or audio clip to send to messenger. String
getMimeType()
Gets the mime type of the content. ShareToMessengerParamsBuilder
setMetaData(String metaData)
Sets the metadata to attach to the content to shared. String
getMetaData()
Gets the metadata to attach to the content to shared. ShareToMessengerParamsBuilder
setExternalUri(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. Uri
getExternalUri()
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. ShareToMessengerParams
build()
Builds the parameter object. -
-
Method Detail
-
getUri
Uri getUri()
Gets the URI of the local image, video, or audio clip to send to messenger. Must be a file://,content://, or res:// URI.
-
getMimeType
String getMimeType()
Gets the mime type of the content. See VALID_MIME_TYPES for whatmime types are supported.
-
setMetaData
ShareToMessengerParamsBuilder setMetaData(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
String getMetaData()
Gets the metadata to attach to the content to shared. See developer docs for more info.
-
setExternalUri
ShareToMessengerParamsBuilder setExternalUri(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
Uri getExternalUri()
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
ShareToMessengerParams build()
Builds the parameter object.
-
-
-
-