Package 

Class WebDialog

  • 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 dialogcompletes, whether because the dialog finished successfully, or it was cancelled, or an errorwas encountered.

      public class WebDialog.Builder
    • Method Summary

      Modifier and Type Method Description
      WebDialog.OnCompleteListener getOnCompleteListener() Gets the listener which will be notified when the dialog finishes.
      void setOnCompleteListener(WebDialog.OnCompleteListener listener) Sets the listener which will be notified when the dialog finishes.
      static int getWebDialogTheme() Gets the theme used by com.facebook.internal.WebDialog
      static void setWebDialogTheme(int theme) Sets the theme used by com.facebook.internal.WebDialog
      static void setInitCallback(WebDialog.InitCallback callback)
      static WebDialog newInstance(Context context, String action, Bundle parameters, int theme, WebDialog.OnCompleteListener listener)
      static WebDialog newInstance(Context context, String action, Bundle parameters, int theme, LoginTargetApp targetApp, WebDialog.OnCompleteListener listener)
      boolean onKeyDown(int keyCode, KeyEvent event)
      void dismiss()
      void onDetachedFromWindow()
      void onAttachedToWindow()
      void onWindowAttributesChanged(WindowManager.LayoutParams params)
      void resize()
      void cancel()
      • 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