共用方式為


TvInteractiveAppService.Session.OnTrackballEvent(MotionEvent) Method

Definition

Implement this method to handle trackball events on the current session.

[Android.Runtime.Register("onTrackballEvent", "(Landroid/view/MotionEvent;)Z", "GetOnTrackballEvent_Landroid_view_MotionEvent_Handler", ApiSince=33)]
public virtual bool OnTrackballEvent (Android.Views.MotionEvent e);
[<Android.Runtime.Register("onTrackballEvent", "(Landroid/view/MotionEvent;)Z", "GetOnTrackballEvent_Landroid_view_MotionEvent_Handler", ApiSince=33)>]
abstract member OnTrackballEvent : Android.Views.MotionEvent -> bool
override this.OnTrackballEvent : Android.Views.MotionEvent -> bool

Parameters

Returns

If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false.

Attributes

Remarks

Implement this method to handle trackball events on the current session.

Java documentation for android.media.tv.interactive.TvInteractiveAppService.Session.onTrackballEvent(android.view.MotionEvent).

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