VibrationAttributes.Builder.SetUsage(Int32) Method

Definition

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.

Applies to