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