Android Guides | Samples

Android.Views.Window.ICallback

API from a Window back to its caller.

See Also: Window+ICallback

Syntax

[Android.Runtime.Register("android/view/Window$Callback", "", "Android.Views.Window/ICallbackInvoker")]
public interface Window.ICallback : IJavaObject, IDisposable

Remarks

API from a Window back to its caller. This allows the client to intercept key dispatching, panels and menus, etc.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Views.Window.ICallback are listed below.

Public Methods

DispatchGenericMotionEvent(MotionEvent) : Boolean
Called to process generic motion events.
DispatchKeyEvent(KeyEvent) : Boolean
Called to process key events.
DispatchKeyShortcutEvent(KeyEvent) : Boolean
Called to process a key shortcut event.
DispatchPopulateAccessibilityEvent(AccessibilityEvent) : Boolean
Called to process population of AccessibilityEvents.
DispatchTouchEvent(MotionEvent) : Boolean
Called to process touch screen events.
DispatchTrackballEvent(MotionEvent) : Boolean
Called to process trackball events.
OnActionModeFinished(ActionMode)
Called when an action mode has been finished.
OnActionModeStarted(ActionMode)
Called when an action mode has been started.
OnAttachedToWindow()
Called when the window has been attached to the window manager.
OnContentChanged()
This hook is called whenever the content view of the screen changes (due to a call to Window.SetContentView(View,LayoutParams) or Window.AddContentView(View,LayoutParams)).
OnCreatePanelMenu(Int32, IMenu) : Boolean
Initialize the contents of the menu for panel 'featureId'.
OnCreatePanelView(Int32) : View
Instantiate the view to display in the panel for 'featureId'.
OnDetachedFromWindow()
Called when the window has been attached to the window manager.
OnMenuItemSelected(Int32, IMenuItem) : Boolean
Called when a panel's menu item has been selected by the user.
OnMenuOpened(Int32, IMenu) : Boolean
Called when a panel's menu is opened by the user.
OnPanelClosed(Int32, IMenu)
Called when a panel is being closed.
OnPreparePanel(Int32, View, IMenu) : Boolean
Prepare a panel to be displayed.
OnSearchRequested() : Boolean
Called when the user signals the desire to start a search.
OnWindowAttributesChanged(WindowManagerLayoutParams)
This is called whenever the current window attributes change.
OnWindowFocusChanged(Boolean)
This hook is called whenever the window focus changes.
OnWindowStartingActionMode(ActionMode+ICallback) : ActionMode
Called when an action mode is being started for this window.