Notification.Builder.SetVibrate(Int64[]) 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.
This method was deprecated in API level 26.
[Android.Runtime.Register("setVibrate", "([J)Landroid/app/Notification$Builder;", "GetSetVibrate_arrayJHandler")]
public virtual Android.App.Notification.Builder? SetVibrate(long[]? pattern);
[<Android.Runtime.Register("setVibrate", "([J)Landroid/app/Notification$Builder;", "GetSetVibrate_arrayJHandler")>]
abstract member SetVibrate : int64[] -> Android.App.Notification.Builder
override this.SetVibrate : int64[] -> Android.App.Notification.Builder
Parameters
- pattern
- Int64[]
long
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
This method was deprecated in API level 26. use NotificationChannel.setVibrationPattern(long[]) instead.
Set the vibration pattern to use. See Vibrator.vibrate(long[], int) for a discussion of the pattern parameter. A notification that vibrates is more likely to be presented as a heads-up notification.
See also:
Android reference for android.app.Notification.Builder.setVibrate.
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.