NotificationChannel.EnableVibration(Boolean) 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 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
- 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)
.
Java documentation for android.app.NotificationChannel.enableVibration(boolean)
.
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.