Window.ICallback Interface

Definition

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 java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
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 AccessibilityEvents.

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 Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
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 Window#setContentView(View, android.view.ViewGroup.LayoutParams) Window.setContentView or Window#addContentView(View, android.view.ViewGroup.LayoutParams) Window.addContentView).

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)

Called when an action mode is being started for this window.

OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType)
SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
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)

Applies to