VibrationAttributesUsageType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines vibration attributes usage type values used by the Android OS API.
public enum VibrationAttributesUsageType
type VibrationAttributesUsageType =
- Inheritance
-
VibrationAttributesUsageType
Fields
| Name | Value | Description |
|---|---|---|
| Unknown | 0 | Usage value to use when usage is unknown. |
| Alarm | 17 | Usage value to use for alarm vibrations. |
| Touch | 18 | Usage value to use for touch vibrations. Most typical haptic feedback should be classed as touch feedback. Examples include vibrations for tap, long press, drag and scroll. |
| Media | 19 | Usage value to use for media vibrations, such as music, movie, soundtrack, animations, games, or any interactive media that isn't for touch feedback specifically. |
| Ringtone | 33 | Usage value to use for ringtone vibrations. |
| PhysicalEmulation | 34 | Usage value to use for vibrations which emulate physical hardware reactions, such as edge squeeze. Normal screen-touch feedback "click" effects would typically be classed as Touch, and on-screen "physical" animations like bouncing would be Media. |
| Notification | 49 | Usage value to use for notification vibrations. |
| HardwareFeedback | 50 | Usage value to use for vibrations which provide a feedback for hardware component interaction, such as a fingerprint sensor. |
| CommunicationRequest | 65 | Usage value to use for vibrations which mean a request to enter/end a communication with the user, such as a voice prompt. |
| Accessibility | 66 | Usage value to use for accessibility vibrations, such as with a screen reader. |
| UsageGestureInput | 98 | Usage value to use for vibrations performed as feedback for a user's gesture input. Android reference for 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. |
Remarks
These values identify the purpose of a vibration.
Java documentation for android.os.VibrationAttributes.
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.