public class ShareToMessengerParams
extends java.lang.Object
MessengerUtils for sending the media to Messenger to share. See developer docs for more info.| Modifier and Type | Field and Description |
|---|---|
android.net.Uri |
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.
|
java.lang.String |
metaData
The metadata to attach to the content to shared.
|
java.lang.String |
mimeType
The mime type of the content.
|
android.net.Uri |
uri
The URI of the local image, video, or audio clip to send to messenger.
|
static java.util.Set<java.lang.String> |
VALID_EXTERNAL_URI_SCHEMES |
static java.util.Set<java.lang.String> |
VALID_MIME_TYPES |
static java.util.Set<java.lang.String> |
VALID_URI_SCHEMES |
| Modifier and Type | Method and Description |
|---|---|
static ShareToMessengerParamsBuilder |
newBuilder(android.net.Uri uri,
java.lang.String mimeType)
Creates a new builder for creating a
ShareToMessengerParams instance |
public static final java.util.Set<java.lang.String> VALID_URI_SCHEMES
public static final java.util.Set<java.lang.String> VALID_MIME_TYPES
public static final java.util.Set<java.lang.String> VALID_EXTERNAL_URI_SCHEMES
public final android.net.Uri uri
public final java.lang.String mimeType
VALID_MIME_TYPES for what mime types are supported.public final java.lang.String metaData
public final android.net.Uri externalUri
uri. If the content is different,
Messenger may fail to send the content. See developer docs for more info.public static ShareToMessengerParamsBuilder newBuilder(android.net.Uri uri, java.lang.String mimeType)
ShareToMessengerParams instanceuri - the uri of the local content. Must be a file://, content://, or res:// URI.mimeType - the mime-type of the content. See VALID_MIME_TYPES for what mime types
are supported.