public static class FacebookDialog.OpenGraphActionDialogBuilder extends Object
FacebookDialog.checkCanPresentOpenGraphDialog();
indicates the capability
is available.Constructor and Description |
---|
FacebookDialog.OpenGraphActionDialogBuilder(Activity activity,
OpenGraphAction action,
String actionType,
String previewPropertyName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FacebookDialog.OpenGraphActionDialogBuilder |
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.OpenGraphActionDialogBuilder |
setImageAttachmentsForAction(List<Bitmap> bitmaps)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentsForAction(List<Bitmap> bitmaps,
boolean isUserGenerated) |
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentsForObject(String objectProperty,
List<Bitmap> bitmaps)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded
prior to publishing the action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentsForObject(String objectProperty,
List<Bitmap> bitmaps,
boolean isUserGenerated) |
public FacebookDialog.OpenGraphActionDialogBuilder(Activity activity, OpenGraphAction action, String actionType, String previewPropertyName)
activity
- the Activity which is presenting the native Open Graph action publish dialog;
must not be nullaction
- the Open Graph action to be published, which must contain a reference to at least one
Open Graph object with the property name specified by setPreviewPropertyNameactionType
- the type of the Open Graph action to be published, which should be the namespace-qualified
name of the action type (e.g., "myappnamespace:myactiontype").previewPropertyName
- the name of a property on the Open Graph action that contains the
Open Graph object which will be displayed as a preview to the userpublic FacebookDialog.OpenGraphActionDialogBuilder setDataErrorsFatal(boolean dataErrorsFatal)
dataErrorsFatal
- true if data errors should be fatal; false if notpublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentsForAction(List<Bitmap> bitmaps)
bitmaps
- a list of Bitmaps to be uploaded and attached to the Open Graph actionpublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentsForAction(List<Bitmap> bitmaps, boolean isUserGenerated)
public FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentsForObject(String objectProperty, List<Bitmap> bitmaps)
objectProperty
- the name of a property on the action that corresponds to an Open Graph objectbitmaps
- a list of Bitmaps to be uploaded and attached to the Open Graph objectpublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentsForObject(String objectProperty, List<Bitmap> bitmaps, boolean isUserGenerated)