Teanga

HapticFeedbackRequest.Usage Property

Definition

Returns the VibrationAttributes usage for the haptic feedback request.

public int Usage { [Android.Runtime.Register("getUsage", "()I", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getUsage", "()I", "", ApiSince=36)>]
member this.Usage : int

Property Value

Value is one of the following: VibrationAttributes.USAGE_UNKNOWN; VibrationAttributes.USAGE_ACCESSIBILITY; VibrationAttributes.USAGE_ALARM; VibrationAttributes.USAGE_COMMUNICATION_REQUEST; VibrationAttributes.USAGE_HARDWARE_FEEDBACK; VibrationAttributes.USAGE_MEDIA; VibrationAttributes.USAGE_NOTIFICATION; VibrationAttributes.USAGE_PHYSICAL_EMULATION; VibrationAttributes.USAGE_RINGTONE; VibrationAttributes.USAGE_TOUCH; VibrationAttributes.USAGE_GESTURE_INPUT

Attributes

Remarks

Returns the VibrationAttributes usage for the haptic feedback request.

Java documentation for android.os.vibrator.HapticFeedbackRequest.getUsage().

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