FacebookDialog.VideoShareDialogBuilder
最新バージョンのSDKではこのクラスは使用できません。
このクラスには新しいバージョンがあります。ご確認ください。 最新バージョン

Provides a builder which can construct a FacebookDialog instance suitable for presenting the native Share dialog for sharing videos. This builder will throw an exception if the Facebook application is not installed, so it should only be used if FacebookDialog.canPresentShareDialog(android.content.Context, com.facebook.widget.FacebookDialog.ShareDialogFeature...) indicates the capability is available.

拡張:Builder
パッケージ:widget
コンストラクター
FacebookDialog.VideoDialogBuilderBase(Activity)

Constructor.

public FacebookDialog.VideoDialogBuilderBase(Activity activity)
パラメーター説明
activityThe Activity which is presenting the native Share dialog; must not be null
FacebookDialog.VideoShareDialogBuilder(Activity)

Constructor.

public FacebookDialog.VideoShareDialogBuilder(Activity activity)
パラメーター説明
activityThe Activity which is presenting the native Share dialog; must not be null
インスタンスメソッド
setPlace(String)

Sets the place for the item to be shared.

public VideoDialogBuilderBase setPlace(String place)
パラメーター説明
placeThe Facebook ID of the place
Returns
This instance of the builder
addVideoFile(File)

Adds a video to display in the native Share dialog, by specifying the location in the file system. The dialog's callback will be called once the user has shared the video, but the video may be uploaded in the background by the Facebook app; apps wishing to be notified when the video upload has succeeded or failed should extend the FacebookBroadcastReceiver class and register it in their AndroidManifest.xml.

public VideoDialogBuilderBase addVideoFile(File video)
パラメーター説明
videoA Files representing the video to be uploaded
Returns
This instance of the builder