-
- All Implemented Interfaces:
-
android.content.DialogInterface,android.view.KeyEvent.Callback,android.view.View.OnCreateContextMenuListener,android.view.Window.Callback
public class WebDialog extends Dialog
com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.
This class provides a mechanism for displaying Facebook Web dialogs inside a Dialog. Helper methods are provided to construct commonly-used dialogs, or a caller can specify arbitrary parameters to call other dialogs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWebDialog.InitCallbackpublic interfaceWebDialog.OnCompleteListenerInterface that implements a listener to be called when the user's interaction with the dialogcompletes, whether because the dialog finished successfully, or it was cancelled, or an errorwas encountered.
public classWebDialog.Builder
-
Field Summary
Fields Modifier and Type Field Description private WebDialog.OnCompleteListeneronCompleteListenerprivate static volatile intwebDialogThemeprivate static WebDialog.InitCallbackinitCallback
-
Method Summary
Modifier and Type Method Description WebDialog.OnCompleteListenergetOnCompleteListener()Gets the listener which will be notified when the dialog finishes. voidsetOnCompleteListener(WebDialog.OnCompleteListener listener)Sets the listener which will be notified when the dialog finishes. static intgetWebDialogTheme()Gets the theme used by com.facebook.internal.WebDialog static voidsetWebDialogTheme(int theme)Sets the theme used by com.facebook.internal.WebDialog static voidsetInitCallback(WebDialog.InitCallback callback)static WebDialognewInstance(Context context, String action, Bundle parameters, int theme, WebDialog.OnCompleteListener listener)static WebDialognewInstance(Context context, String action, Bundle parameters, int theme, LoginTargetApp targetApp, WebDialog.OnCompleteListener listener)booleanonKeyDown(int keyCode, KeyEvent event)voiddismiss()voidonDetachedFromWindow()voidonAttachedToWindow()voidonWindowAttributesChanged(WindowManager.LayoutParams params)voidresize()voidcancel()-
Methods inherited from class android.app.Dialog
addContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelMessage, setCancelable, setCanceledOnTouchOutside, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu -
Methods inherited from class android.view.Window.Callback
onPointerCaptureChanged, onProvideKeyboardShortcuts -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOnCompleteListener
WebDialog.OnCompleteListener getOnCompleteListener()
Gets the listener which will be notified when the dialog finishes.
-
setOnCompleteListener
void setOnCompleteListener(WebDialog.OnCompleteListener listener)
Sets the listener which will be notified when the dialog finishes.
- Parameters:
listener- the listener to notify, or null if no notification is desired
-
getWebDialogTheme
static int getWebDialogTheme()
Gets the theme used by com.facebook.internal.WebDialog
-
setWebDialogTheme
static void setWebDialogTheme(int theme)
Sets the theme used by com.facebook.internal.WebDialog
- Parameters:
theme- A theme to use
-
setInitCallback
static void setInitCallback(WebDialog.InitCallback callback)
-
newInstance
static WebDialog newInstance(Context context, String action, Bundle parameters, int theme, WebDialog.OnCompleteListener listener)
-
newInstance
static WebDialog newInstance(Context context, String action, Bundle parameters, int theme, LoginTargetApp targetApp, WebDialog.OnCompleteListener listener)
-
dismiss
void dismiss()
-
onDetachedFromWindow
void onDetachedFromWindow()
-
onAttachedToWindow
void onAttachedToWindow()
-
onWindowAttributesChanged
void onWindowAttributesChanged(WindowManager.LayoutParams params)
-
resize
void resize()
-
cancel
void cancel()
-
-
-
-