Android.App.Dialog: Method Members

The methods of Android.App.Dialog are listed below. For a list of all members, see the Dialog Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

AddContentView(Android.Views.View, Android.Views.ViewGroup.LayoutParams)
Add an additional content view to the screen.
Cancel()
Cancel the dialog.
CloseOptionsMenu()
Create()
Forces immediate creation of the dialog.
Dismiss()
Dismiss this dialog, removing it from the screen.
DispatchGenericMotionEvent(Android.Views.MotionEvent) : bool
Called to process generic motion events.
DispatchKeyEvent(Android.Views.KeyEvent) : bool
Called to process key events.
DispatchKeyShortcutEvent(Android.Views.KeyEvent) : bool
Called to process a key shortcut event.
DispatchPopulateAccessibilityEvent(Android.Views.Accessibility.AccessibilityEvent) : bool
Called to process population of Android.Views.Accessibility.AccessibilityEvents.
DispatchTouchEvent(Android.Views.MotionEvent) : bool
Called to process touch screen events.
DispatchTrackballEvent(Android.Views.MotionEvent) : bool
Called to process trackball events.
FindViewById(int) : Android.Views.View
Finds a child view with the given identifier.
FindViewById<T>(int) : T
Documentation for this section has not yet been entered.
Hide()
Hide the dialog, but do not dismiss it.
InvalidateOptionsMenu()
OnActionModeFinished(Android.Views.ActionMode)
Called when an action mode has been finished.
OnActionModeStarted(Android.Views.ActionMode)
Called when an action mode has been started.
OnAttachedToWindow()
Called when the window has been attached to the window manager.
OnBackPressed()
Called when the dialog has detected the user's press of the back key.
OnContentChanged()
This hook is called whenever the content view of the screen changes (due to a call to Android.Views.Window.SetContentView(Android.Views.View, .LayoutParams) or Android.Views.Window.AddContentView(Android.Views.View, .LayoutParams)).
OnContextItemSelected(Android.Views.IMenuItem) : bool
OnContextMenuClosed(Android.Views.IMenu)
OnCreateContextMenu(Android.Views.IContextMenu, Android.Views.View, Android.Views.IContextMenuContextMenuInfo)
Called when the context menu for this view is being built.
OnCreateOptionsMenu(Android.Views.IMenu) : bool
It is usually safe to proxy this call to the owner activity's Activity.OnCreateOptionsMenu(Android.Views.IMenu) if the client desires the same menu for this Dialog.
OnCreatePanelMenu(int, Android.Views.IMenu) : bool
Initialize the contents of the menu for panel 'featureId'.
OnCreatePanelView(int) : Android.Views.View
Instantiate the view to display in the panel for 'featureId'.
OnDetachedFromWindow()
Called when the window has been attached to the window manager.
OnGenericMotionEvent(Android.Views.MotionEvent) : bool
Called when a generic motion event was not handled by any of the views inside of the dialog.
OnKeyDown(Android.Views.Keycode, Android.Views.KeyEvent) : bool
A key was pressed down.
OnKeyLongPress(Android.Views.Keycode, Android.Views.KeyEvent) : bool
Default implementation of NoType:android/view/KeyEvent$Callback;Href=../../../reference/android/view/KeyEvent.Callback.html#onKeyLongPress(int, android.view.KeyEvent): always returns false (doesn't handle the event).
OnKeyMultiple(Android.Views.Keycode, int, Android.Views.KeyEvent) : bool
Default implementation of NoType:android/view/KeyEvent$Callback;Href=../../../reference/android/view/KeyEvent.Callback.html#onKeyMultiple(int, int, android.view.KeyEvent): always returns false (doesn't handle the event).
OnKeyShortcut(Android.Views.Keycode, Android.Views.KeyEvent) : bool
Called when a key shortcut event is not handled by any of the views in the Dialog.
OnKeyUp(Android.Views.Keycode, Android.Views.KeyEvent) : bool
A key was released.
OnMenuItemSelected(int, Android.Views.IMenuItem) : bool
Called when a panel's menu item has been selected by the user.
OnMenuOpened(int, Android.Views.IMenu) : bool
Called when a panel's menu is opened by the user.
OnOptionsItemSelected(Android.Views.IMenuItem) : bool
OnOptionsMenuClosed(Android.Views.IMenu)
OnPanelClosed(int, Android.Views.IMenu)
Called when a panel is being closed.
OnPrepareOptionsMenu(Android.Views.IMenu) : bool
It is usually safe to proxy this call to the owner activity's Activity.OnPrepareOptionsMenu(Android.Views.IMenu) if the client desires the same menu for this Dialog.
OnPreparePanel(int, Android.Views.View, Android.Views.IMenu) : bool
Prepare a panel to be displayed.
OnRestoreInstanceState(Android.OS.Bundle)
Restore the state of the dialog from a previously saved bundle.
OnSaveInstanceState() : Android.OS.Bundle
Saves the state of the dialog into a bundle.
OnSearchRequested() : bool
This hook is called when the user signals the desire to start a search.
OnTouchEvent(Android.Views.MotionEvent) : bool
Called when a touch screen event was not handled by any of the views under it.
OnTrackballEvent(Android.Views.MotionEvent) : bool
Called when the trackball was moved and not handled by any of the views inside of the activity.
OnWindowAttributesChanged(Android.Views.WindowManagerLayoutParams)
This is called whenever the current window attributes change.
OnWindowFocusChanged(bool)
This hook is called whenever the window focus changes.
OnWindowStartingActionMode(Android.Views.ActionMode.ICallback) : Android.Views.ActionMode
Called when an action mode is being started for this window.
OpenContextMenu(Android.Views.View)
OpenOptionsMenu()
RegisterForContextMenu(Android.Views.View)
RequestWindowFeature(int) : bool
Enable extended window features.
SetCancelable(bool)
Sets whether this dialog is cancelable with the Android.Views.KeyEvent.KEYCODE_BACK key.
SetCanceledOnTouchOutside(bool)
Sets whether this dialog is canceled when touched outside the window's bounds.
SetCancelMessage(Android.OS.Message)
Set a message to be sent when the dialog is canceled.
SetContentView(Android.Views.View)
Set the screen content to an explicit view.
SetContentView(int)
Set the screen content from a layout resource.
SetContentView(Android.Views.View, Android.Views.ViewGroup.LayoutParams)
Set the screen content to an explicit view.
SetDismissMessage(Android.OS.Message)
Set a message to be sent when the dialog is dismissed.
SetFeatureDrawable(int, Android.Graphics.Drawables.Drawable)
Convenience for calling Android.Views.Window.SetFeatureDrawable(Android.Views.WindowFeatures, Android.Graphics.Drawables.Drawable).
SetFeatureDrawableAlpha(int, int)
Convenience for calling Android.Views.Window.SetFeatureDrawableAlpha(Android.Views.WindowFeatures, System.Int32).
SetFeatureDrawableResource(int, int)
Convenience for calling Android.Views.Window.SetFeatureDrawableResource(Android.Views.WindowFeatures, System.Int32).
SetFeatureDrawableUri(int, Android.Net.Uri)
Convenience for calling Android.Views.Window.SetFeatureDrawableUri(Android.Views.WindowFeatures, Android.Net.Uri).
SetOnCancelListener(Android.Content.IDialogInterfaceOnCancelListener)
Set a listener to be invoked when the dialog is canceled.
SetOnDismissListener(Android.Content.IDialogInterfaceOnDismissListener)
Set a listener to be invoked when the dialog is dismissed.
SetOnKeyListener(Android.Content.IDialogInterfaceOnKeyListener)
Sets the callback that will be called if a key is dispatched to the dialog.
SetOnShowListener(Android.Content.IDialogInterfaceOnShowListener)
Sets a listener to be invoked when the dialog is shown.
SetTitle(Java.Lang.ICharSequence)
Set the title text for this dialog's window.
SetTitle(int)
Set the title text for this dialog's window.
SetTitle(string)
Documentation for this section has not yet been entered.
Show()
Start the dialog and display it on screen.
TakeKeyEvents(bool)
Request that key events come to this dialog.
UnregisterForContextMenu(Android.Views.View)

Protected Methods

OnCreate(Android.OS.Bundle)
Similar to Activity.OnCreate(Android.OS.Bundle), you should initialize your dialog in this method, including calling Dialog.SetContentView(Android.Views.View).
OnStart()
Called when the dialog is starting.
OnStop()
Called to tell you that you're stopping.