public class AppInviteDialog extends com.facebook.internal.FacebookDialogBase<AppInviteContent,AppInviteDialog.Result>
| Modifier and Type | Class and Description |
|---|---|
static class |
AppInviteDialog.Result
Helper object for handling the result from an app invites dialog.
|
| Constructor and Description |
|---|
AppInviteDialog(android.app.Activity activity)
Constructs a new AppInviteDialog.
|
AppInviteDialog(android.support.v4.app.Fragment fragment)
Constructs a new AppInviteDialog.
|
AppInviteDialog(android.app.Fragment fragment)
Constructs a new AppInviteDialog.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canShow()
Indicates whether the app invite dialog can be shown.
|
protected com.facebook.internal.AppCall |
createBaseAppCall() |
protected java.util.List<com.facebook.internal.FacebookDialogBase.ModeHandler> |
getOrderedModeHandlers() |
protected void |
registerCallbackImpl(com.facebook.internal.CallbackManagerImpl callbackManager,
com.facebook.FacebookCallback<AppInviteDialog.Result> callback) |
static void |
show(android.app.Activity activity,
AppInviteContent appInviteContent)
Helper to show the provided
AppInviteContent using
the provided Activity. |
static void |
show(android.support.v4.app.Fragment fragment,
AppInviteContent appInviteContent)
Helper to show the provided
AppInviteContent using
the provided Fragment. |
static void |
show(android.app.Fragment fragment,
AppInviteContent appInviteContent)
Helper to show the provided
AppInviteContent using
the provided Fragment. |
public AppInviteDialog(android.app.Activity activity)
activity - Activity to use to share the provided content.public AppInviteDialog(android.support.v4.app.Fragment fragment)
fragment - android.support.v4.app.Fragment to use to share the provided content.public AppInviteDialog(android.app.Fragment fragment)
fragment - android.app.Fragment to use to share the provided content.public static boolean canShow()
public static void show(android.app.Activity activity,
AppInviteContent appInviteContent)
AppInviteContent using
the provided Activity. No callback will be invoked.activity - Activity to use to share the provided contentappInviteContent - Content of the app invite to sendpublic static void show(android.support.v4.app.Fragment fragment,
AppInviteContent appInviteContent)
AppInviteContent using
the provided Fragment. No callback will be invoked.fragment - android.support.v4.app.Fragment to use to share the provided contentappInviteContent - Content of the app invite to sendpublic static void show(android.app.Fragment fragment,
AppInviteContent appInviteContent)
AppInviteContent using
the provided Fragment. No callback will be invoked.fragment - android.app.Fragment to use to share the provided contentappInviteContent - Content of the app invite to sendprotected void registerCallbackImpl(com.facebook.internal.CallbackManagerImpl callbackManager,
com.facebook.FacebookCallback<AppInviteDialog.Result> callback)
registerCallbackImpl in class com.facebook.internal.FacebookDialogBase<AppInviteContent,AppInviteDialog.Result>protected com.facebook.internal.AppCall createBaseAppCall()
createBaseAppCall in class com.facebook.internal.FacebookDialogBase<AppInviteContent,AppInviteDialog.Result>protected java.util.List<com.facebook.internal.FacebookDialogBase.ModeHandler> getOrderedModeHandlers()
getOrderedModeHandlers in class com.facebook.internal.FacebookDialogBase<AppInviteContent,AppInviteDialog.Result>