Window.ICallback Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
API from a Window back to its caller.
[Android.Runtime.Register("android/view/Window$Callback", "", "Android.Views.Window/ICallbackInvoker")]
public interface Window.ICallback : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/Window$Callback", "", "Android.Views.Window/ICallbackInvoker")>]
type Window.ICallback = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Attributes
- Implements
Remarks
API from a Window back to its caller. This allows the client to intercept key dispatching, panels and menus, etc.
Java documentation for android.view.Window.Callback
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Properties
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
JniIdentityHashCode |
Returns the value of |
JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Methods
DispatchGenericMotionEvent(MotionEvent) |
Called to process generic motion events. |
DispatchKeyEvent(KeyEvent) |
Called to process key events. |
DispatchKeyShortcutEvent(KeyEvent) |
Called to process a key shortcut event. |
DispatchPopulateAccessibilityEvent(AccessibilityEvent) |
Called to process population of |
DispatchTouchEvent(MotionEvent) |
Called to process touch screen events. |
DispatchTrackballEvent(MotionEvent) |
Called to process trackball events. |
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
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
|
OnCreatePanelMenu(Int32, IMenu) |
Initialize the contents of the menu for panel 'featureId'. |
OnCreatePanelView(Int32) |
Instantiate the view to display in the panel for 'featureId'. |
OnDetachedFromWindow() |
Called when the window has been detached from the window manager. |
OnMenuItemSelected(Int32, IMenuItem) |
Called when a panel's menu item has been selected by the user. |
OnMenuOpened(Int32, IMenu) |
Called when a panel's menu is opened by the user. |
OnPanelClosed(Int32, IMenu) |
Called when a panel is being closed. |
OnPointerCaptureChanged(Boolean) |
Called when pointer capture is enabled or disabled for the current window. |
OnPreparePanel(Int32, View, IMenu) |
Prepare a panel to be displayed. |
OnProvideKeyboardShortcuts(IList<KeyboardShortcutGroup>, IMenu, Int32) |
Called when Keyboard Shortcuts are requested for the current window. |
OnSearchRequested() |
Called when the user signals the desire to start a search. |
OnSearchRequested(SearchEvent) |
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, ActionModeType) | |
OnWindowStartingActionMode(ActionMode+ICallback) |
Called when an action mode is being started for this window. |
SetJniIdentityHashCode(Int32) |
Set the value returned by |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
UnregisterFromRuntime() |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |