Android SDK Version
  • java.lang.Object
    • com.facebook.messenger.ShareToMessengerParams

public class ShareToMessengerParams
extends java.lang.Object
Parameters used by MessengerUtils for sending the media to Messenger to share. See developer docs for more info.
Field Summary
Modifier and TypeField and Description
UriexternalUri
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.StringmetaData
The metadata to attach to the content to shared.
java.lang.StringmimeType
The mime type of the content.
Uriuri
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 
Method Summary
Modifier and TypeMethod and Description
static ShareToMessengerParamsBuildernewBuilder(Uri uri, java.lang.String mimeType)
Creates a new builder for creating a ShareToMessengerParams instance
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

VALID_URI_SCHEMES

public static final java.util.Set<java.lang.String> VALID_URI_SCHEMES

VALID_MIME_TYPES

public static final java.util.Set<java.lang.String> VALID_MIME_TYPES

VALID_EXTERNAL_URI_SCHEMES

public static final java.util.Set<java.lang.String> VALID_EXTERNAL_URI_SCHEMES

uri

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

mimeType

public final java.lang.String mimeType
The mime type of the content. See VALID_MIME_TYPES for what mime types are supported.

metaData

public final java.lang.String metaData
The metadata to attach to the content to shared. See developer docs for more info.

externalUri

public final 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. 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.
Method Detail

newBuilder

public static ShareToMessengerParamsBuilder newBuilder(Uri uri,
                                                       java.lang.String mimeType)
Creates a new builder for creating a ShareToMessengerParams instance
Parameters:
uri - 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.
Returns:
the builder instance