VibrationAttributes.Builder.SetUsage(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.
Sets the attribute describing the type of the corresponding vibration.
[Android.Runtime.Register("setUsage", "(I)Landroid/os/VibrationAttributes$Builder;", "", ApiSince=30)]
public Android.OS.VibrationAttributes.Builder SetUsage(int usage);
[<Android.Runtime.Register("setUsage", "(I)Landroid/os/VibrationAttributes$Builder;", "", ApiSince=30)>]
member this.SetUsage : int -> Android.OS.VibrationAttributes.Builder
Parameters
- usage
- Int32
The vibration usage category, specified by a VibrationAttributes.USAGE_* constant.
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Sets the attribute describing the type of the corresponding vibration.
Java documentation for android.os.VibrationAttributes.Builder.setUsage(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.