ShareToMessengerParamsBuilder

Builder for ShareToMessengerParams.

الإضافات:Object
الحزمة: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()
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
setMetaData(String)

Sets the metadata to attach to the content to shared. See developer docs for more info.

public ShareToMessengerParamsBuilder setMetaData(String metaData)
المعلمةالوصف
metaDataThe metadata to attach to the message
Returns
This builder
getMetaData()

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

public String getMetaData()
Returns
The metadata to attach to the message
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)
المعلمةالوصف
externalUriThe 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