-
- 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 interface
WebDialog.InitCallback
public interface
WebDialog.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 class
WebDialog.Builder
public class
WebDialog.Companion
-
Field Summary
Fields Modifier and Type Field Description private WebDialog.OnCompleteListener
onCompleteListener
-
Method Summary
Modifier and Type Method Description final WebDialog.OnCompleteListener
getOnCompleteListener()
Sets the listener which will be notified when the dialog finishes. final Unit
setOnCompleteListener(WebDialog.OnCompleteListener onCompleteListener)
Sets the listener which will be notified when the dialog finishes. Boolean
onKeyDown(Integer keyCode, KeyEvent event)
Unit
dismiss()
Unit
onDetachedFromWindow()
Unit
onAttachedToWindow()
Unit
onWindowAttributesChanged(WindowManager.LayoutParams params)
Bundle
parseResponseUri(String urlString)
final Unit
resize()
Unit
cancel()
-
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.OnCompleteListener getOnCompleteListener()
Sets the listener which will be notified when the dialog finishes.
-
setOnCompleteListener
final Unit setOnCompleteListener(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
-
onDetachedFromWindow
Unit onDetachedFromWindow()
-
onAttachedToWindow
Unit onAttachedToWindow()
-
onWindowAttributesChanged
Unit onWindowAttributesChanged(WindowManager.LayoutParams params)
-
parseResponseUri
Bundle parseResponseUri(String urlString)
-
-
-
-