Language

NotificationChannel.EnableVibration(Boolean) Method

Definition

Sets whether notification posted to this channel should vibrate.

[Android.Runtime.Register("enableVibration", "(Z)V", "", ApiSince=26)]
public void EnableVibration(bool vibration);
[<Android.Runtime.Register("enableVibration", "(Z)V", "", ApiSince=26)>]
member this.EnableVibration : bool -> unit

Parameters

vibration
Boolean

boolean

Attributes

Remarks

Sets whether notification posted to this channel should vibrate. The vibration pattern can be set with setVibrationPattern(long[]). Only modifiable before the channel is submitted to NotificationManager.createNotificationChannel(NotificationChannel).

Android reference for android.app.NotificationChannel.enableVibration.

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