public static class FacebookDialog.ShareDialogBuilder extends Object
FacebookDialog.checkCanPresentShareDialog()
indicates the capability
is available.Constructor and Description |
---|
FacebookDialog.ShareDialogBuilder(Activity activity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FacebookDialog.ShareDialogBuilder |
setCaption(String caption)
Sets the subtitle of the item to be shared.
|
FacebookDialog.ShareDialogBuilder |
setDataErrorsFatal(boolean dataErrorsFatal)
Sets whether errors encountered during previewing the shared item should be considered fatal and
cause the dialog to return an error
|
FacebookDialog.ShareDialogBuilder |
setDescription(String description)
Sets the description of the item to be shared.
|
FacebookDialog.ShareDialogBuilder |
setFriends(List<String> friends)
Sets the tagged friends for the item to be shared.
|
FacebookDialog.ShareDialogBuilder |
setLink(String link)
Sets the URL of the item to be shared.
|
FacebookDialog.ShareDialogBuilder |
setName(String name)
Sets the title of the item to be shared.
|
FacebookDialog.ShareDialogBuilder |
setPicture(String picture)
Sets the URL of the image of the item to be shared.
|
FacebookDialog.ShareDialogBuilder |
setPlace(String place)
Sets the place for the item to be shared.
|
FacebookDialog.ShareDialogBuilder |
setRef(String ref)
Sets the 'ref' property of the item to be shared.
|
public FacebookDialog.ShareDialogBuilder(Activity activity)
activity
- the Activity which is presenting the native Share dialog; must not be nullpublic FacebookDialog.ShareDialogBuilder setName(String name)
name
- the titlepublic FacebookDialog.ShareDialogBuilder setCaption(String caption)
caption
- the subtitlepublic FacebookDialog.ShareDialogBuilder setDescription(String description)
description
- the descriptionpublic FacebookDialog.ShareDialogBuilder setLink(String link)
link
- the URLpublic FacebookDialog.ShareDialogBuilder setPicture(String picture)
picture
- the URL of the imagepublic FacebookDialog.ShareDialogBuilder setPlace(String place)
place
- the Facebook ID of the placepublic FacebookDialog.ShareDialogBuilder setFriends(List<String> friends)
friends
- a list of Facebook IDs of the friends to be tagged in the shared itempublic FacebookDialog.ShareDialogBuilder setRef(String ref)
ref
- the 'ref' propertypublic FacebookDialog.ShareDialogBuilder setDataErrorsFatal(boolean dataErrorsFatal)
dataErrorsFatal
- true if data errors should be fatal; false if not