ShareToMessengerParams
有此級別的更新版本。前往查看 最新版本。

Parameters used by MessengerUtils for sending the media to Messenger to share. See developer docs for more info.

伸延:Object
套件:messenger
類別方式
newBuilder(Uri, String)

Creates a new builder for creating a ShareToMessengerParams instance

public static ShareToMessengerParamsBuilder newBuilder(Uri uri, String mimeType)
參數說明
uriThe uri of the local content. Must be a file://, content://, or res:// URI.
mimeTypeThe mime-type of the content. See ShareToMessengerParams.VALID_MIME_TYPES for what mime types are supported.
Returns
The builder instance
常數
VALID_URI_SCHEMES
public static final Set VALID_URI_SCHEMES
VALID_MIME_TYPES
public static final Set VALID_MIME_TYPES
VALID_EXTERNAL_URI_SCHEMES
public static final Set VALID_EXTERNAL_URI_SCHEMES
uri
The URI of the local image, video, or audio clip to send to messenger. Must be a file://, content://, or res:// URI.
public final Uri uri
mimeType
The mime type of the content. See ShareToMessengerParams.VALID_MIME_TYPES for what mime types are supported.
public final String mimeType
metaData
The metadata to attach to the content to shared. See developer docs for more info.
public final String metaData
externalUri
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 ShareToMessengerParams.uri. If the content is different, Messenger may fail to send the content. See developer docs for more info.
public final Uri externalUri