public final class MessageDialog extends FacebookDialogBase<ShareContent,Sharer.Result> implements Sharer
FacebookDialogBase.ModeHandlerSharer.ResultBASE_AUTOMATIC_MODE| Constructor and Description |
|---|
MessageDialog(android.app.Activity activity)
Constructs a MessageDialog.
|
MessageDialog(android.support.v4.app.Fragment fragment)
Constructs a MessageDialog.
|
MessageDialog(android.app.Fragment fragment)
Constructs a MessageDialog.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canShow(java.lang.Class<? extends ShareContent> contentType)
Indicates whether it is possible to show the dialog for
ShareContent of the specified type. |
protected AppCall |
createBaseAppCall() |
protected java.util.List<FacebookDialogBase.ModeHandler> |
getOrderedModeHandlers() |
boolean |
getShouldFailOnDataError()
Specifies whether the sharer should fail if it finds an error with the share content.
|
protected void |
registerCallbackImpl(CallbackManagerImpl callbackManager,
FacebookCallback<Sharer.Result> callback) |
void |
setShouldFailOnDataError(boolean shouldFailOnDataError)
Specifies whether the sharer should fail if it finds an error with the share content.
|
static void |
show(android.app.Activity activity,
ShareContent shareContent)
Helper to show the provided
ShareContent using the provided
Activity. |
static void |
show(android.support.v4.app.Fragment fragment,
ShareContent shareContent)
Helper to show the provided
ShareContent using the provided
Fragment. |
static void |
show(android.app.Fragment fragment,
ShareContent shareContent)
Helper to show the provided
ShareContent using the provided
Fragment. |
canShow, canShowImpl, getActivityContext, getRequestCode, registerCallback, registerCallback, setRequestCode, show, showImpl, startActivityForResultpublic MessageDialog(android.app.Activity activity)
activity - Activity to use to send the provided content.public MessageDialog(android.support.v4.app.Fragment fragment)
fragment - android.support.v4.app.Fragment to use to send the provided content.public MessageDialog(android.app.Fragment fragment)
fragment - android.app.Fragment to use to send the provided content.public static void show(android.app.Activity activity,
ShareContent shareContent)
ShareContent using the provided
Activity. No callback will be invoked.activity - Activity to use to send the provided contentshareContent - Content to sendpublic static void show(android.support.v4.app.Fragment fragment,
ShareContent shareContent)
ShareContent using the provided
Fragment. No callback will be invoked.fragment - android.support.v4.app.Fragment to use to send the provided contentshareContent - Content to sendpublic static void show(android.app.Fragment fragment,
ShareContent shareContent)
ShareContent using the provided
Fragment. No callback will be invoked.fragment - android.app.Fragment to use to send the provided contentshareContent - Content to sendpublic static boolean canShow(java.lang.Class<? extends ShareContent> contentType)
ShareContent of the specified type.contentType - Class of the intended ShareContent to
send.protected void registerCallbackImpl(CallbackManagerImpl callbackManager, FacebookCallback<Sharer.Result> callback)
registerCallbackImpl in class FacebookDialogBase<ShareContent,Sharer.Result>public boolean getShouldFailOnDataError()
SharergetShouldFailOnDataError in interface Sharerpublic void setShouldFailOnDataError(boolean shouldFailOnDataError)
SharersetShouldFailOnDataError in interface SharershouldFailOnDataError - whether the dialog should fail if it finds an error.protected AppCall createBaseAppCall()
createBaseAppCall in class FacebookDialogBase<ShareContent,Sharer.Result>protected java.util.List<FacebookDialogBase.ModeHandler> getOrderedModeHandlers()
getOrderedModeHandlers in class FacebookDialogBase<ShareContent,Sharer.Result>