Compartir a través de


MotionPredictor.IsPredictionAvailable(Int32, InputSourceType) Method

Definition

Check whether a device supports motion predictions for a given source type.

[Android.Runtime.Register("isPredictionAvailable", "(II)Z", "", ApiSince=34)]
public bool IsPredictionAvailable (int deviceId, Android.Views.InputSourceType source);
[<Android.Runtime.Register("isPredictionAvailable", "(II)Z", "", ApiSince=34)>]
member this.IsPredictionAvailable : int * Android.Views.InputSourceType -> bool

Parameters

deviceId
Int32

The input device id.

source
InputSourceType

The source of input events.

Returns

True if the current device supports predictions, false otherwise.

Attributes

Remarks

Check whether a device supports motion predictions for a given source type.

Java documentation for android.view.MotionPredictor.isPredictionAvailable(int, int).

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