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 dialog completes, whether because the dialog finished successfully, or it was cancelled, or an error was encountered.
public classWebDialog.Builder
public classWebDialog.Companion
Field Summary
Modifier and TypeFieldDescription
private WebDialog.OnCompleteListeneronCompleteListener
Method Summary
Modifier and TypeMethodDescription
final WebDialog.OnCompleteListenergetOnCompleteListener() Sets the listener which will be notified when the dialog finishes.
final UnitsetOnCompleteListener(WebDialog.OnCompleteListener onCompleteListener) Sets the listener which will be notified when the dialog finishes.
BooleanonKeyDown(Integer keyCode, KeyEvent event)
Unitdismiss()
UnitonDetachedFromWindow()
UnitonAttachedToWindow()
UnitonWindowAttributesChanged(WindowManager.LayoutParams params)
BundleparseResponseUri(String urlString)
final Unitresize()
Unitcancel()
Methods inherited from class com.facebook.internal.WebDialog
addContentView, closeOptionsMenu, create, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onGenericMotionEvent, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelMessage, setCancelable, setCanceledOnTouchOutside, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
Methods inherited from class android.app.Dialog
onPointerCaptureChanged, onProvideKeyboardShortcuts
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getOnCompleteListener

 final WebDialog.OnCompleteListenergetOnCompleteListener()
Sets the listener which will be notified when the dialog finishes.

setOnCompleteListener

 final UnitsetOnCompleteListener(WebDialog.OnCompleteListener onCompleteListener)
Sets the listener which will be notified when the dialog finishes.
Parameters:
onCompleteListener - the listener to notify, or null if no notification is desired

onKeyDown

BooleanonKeyDown(Integer keyCode, KeyEvent event)

dismiss

Unitdismiss()

onDetachedFromWindow

UnitonDetachedFromWindow()

onAttachedToWindow

UnitonAttachedToWindow()

parseResponseUri

BundleparseResponseUri(String urlString)

resize

 final Unitresize()

cancel

Unitcancel()