共用方式為


KeyEvent.Dispatch Method

Definition

Overloads

Dispatch(KeyEvent+ICallback)
Obsolete.
Dispatch(KeyEvent+ICallback, KeyEvent+DispatcherState, Object)

Deliver this key event to a KeyEvent Callback interface.

Dispatch(KeyEvent+ICallback)

Caution

deprecated

[Android.Runtime.Register("dispatch", "(Landroid/view/KeyEvent$Callback;)Z", "")]
[System.Obsolete("deprecated")]
public bool Dispatch (Android.Views.KeyEvent.ICallback? receiver);
[<Android.Runtime.Register("dispatch", "(Landroid/view/KeyEvent$Callback;)Z", "")>]
[<System.Obsolete("deprecated")>]
member this.Dispatch : Android.Views.KeyEvent.ICallback -> bool

Parameters

Returns

Attributes

Remarks

Java documentation for android.view.KeyEvent.dispatch(android.view.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.

Applies to

Dispatch(KeyEvent+ICallback, KeyEvent+DispatcherState, Object)

Deliver this key event to a KeyEvent Callback interface.

[Android.Runtime.Register("dispatch", "(Landroid/view/KeyEvent$Callback;Landroid/view/KeyEvent$DispatcherState;Ljava/lang/Object;)Z", "")]
public bool Dispatch (Android.Views.KeyEvent.ICallback? receiver, Android.Views.KeyEvent.DispatcherState? state, Java.Lang.Object? target);
[<Android.Runtime.Register("dispatch", "(Landroid/view/KeyEvent$Callback;Landroid/view/KeyEvent$DispatcherState;Ljava/lang/Object;)Z", "")>]
member this.Dispatch : Android.Views.KeyEvent.ICallback * Android.Views.KeyEvent.DispatcherState * Java.Lang.Object -> bool

Parameters

receiver
KeyEvent.ICallback

The Callback that will be given the event.

state
KeyEvent.DispatcherState

State information retained across events.

target
Object

The target of the dispatch, for use in tracking.

Returns

Attributes

Remarks

Java documentation for android.view.KeyEvent.dispatch(android.view.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.

Applies to