Android SDK Version
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
Modifier and TypeClassDescription
public interfaceWebDialog.InitCallback
public interfaceWebDialog.OnCompleteListener
Interface 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
Modifier and TypeFieldDescription
private WebDialog.OnCompleteListeneronCompleteListener
private static volatile intwebDialogTheme
private static WebDialog.InitCallbackinitCallback
Method Summary
Modifier and TypeMethodDescription
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.OnCompleteListenergetOnCompleteListener()
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 WebDialognewInstance(Context context, String action, Bundle parameters, int theme, WebDialog.OnCompleteListener listener)

newInstance

 static WebDialognewInstance(Context context, String action, Bundle parameters, int theme, LoginTargetApp targetApp, WebDialog.OnCompleteListener listener)

onKeyDown

 boolean onKeyDown(int keyCode, KeyEvent event)

dismiss

 void dismiss()

onDetachedFromWindow

 void onDetachedFromWindow()

onAttachedToWindow

 void onAttachedToWindow()

onWindowAttributesChanged

 void onWindowAttributesChanged(WindowManager.LayoutParams params)

resize

 void resize()

cancel

 void cancel()