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

public class ShareToMessengerParamsBuilder
extends java.lang.Object
Method Summary
Modifier and TypeMethod and Description
ShareToMessengerParamsbuild()
Builds the parameter object.
UrigetExternalUri()
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.
java.lang.StringgetMetaData()
Gets the metadata to attach to the content to shared.
java.lang.StringgetMimeType()
Gets the mime type of the content.
UrigetUri()
Gets the URI of the local image, video, or audio clip to send to messenger.
ShareToMessengerParamsBuildersetExternalUri(Uri externalUri)
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.
ShareToMessengerParamsBuildersetMetaData(java.lang.String metaData)
Sets the metadata to attach to the content to shared.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getUri

public 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.
Returns:
the uri

getMimeType

public java.lang.String getMimeType()
Gets the mime type of the content. See ShareToMessengerParams.VALID_MIME_TYPES for what mime types are supported.
Returns:
the mime type

setMetaData

public ShareToMessengerParamsBuilder setMetaData(java.lang.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
Returns:
this builder

getMetaData

public java.lang.String getMetaData()
Gets the metadata to attach to the content to shared. See developer docs for more info.
Returns:
the metadata to attach to the message

setExternalUri

public ShareToMessengerParamsBuilder setExternalUri(Uri externalUri)
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 getUri(). If the content is different, Messenger may fail to send the content. See developer docs for more info.
Parameters:
externalUri - the external uri to set
Returns:
this builder

getExternalUri

public Uri 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 getUri(). If the content is different, Messenger may fail to send the content. See developer docs for more info.
Returns:
the external URI

build

public ShareToMessengerParams build()
Builds the parameter object.
Returns:
the parameter object