VibrationAttributes.CreateForUsage(Int32) Method
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.
Creates a new VibrationAttributes instance with given usage.
[Android.Runtime.Register("createForUsage", "(I)Landroid/os/VibrationAttributes;", "", ApiSince=33)]
public static Android.OS.VibrationAttributes CreateForUsage(int usage);
[<Android.Runtime.Register("createForUsage", "(I)Landroid/os/VibrationAttributes;", "", ApiSince=33)>]
static member CreateForUsage : int -> Android.OS.VibrationAttributes
Parameters
- usage
- Int32
Value is one of the following: USAGE_UNKNOWN USAGE_ACCESSIBILITY USAGE_ALARM USAGE_COMMUNICATION_REQUEST USAGE_HARDWARE_FEEDBACK USAGE_MEDIA USAGE_NOTIFICATION USAGE_PHYSICAL_EMULATION USAGE_RINGTONE USAGE_TOUCH USAGE_GESTURE_INPUT
Returns
The returned value is non-null.
- Attributes
Remarks
Creates a new VibrationAttributes instance with given usage.
Java documentation for android.os.VibrationAttributes.createForUsage(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.