语言

Notification.Vibrate 属性

定义

此字段在 API 级别 26 中已弃用。

[Android.Runtime.Register("vibrate")]
public long[] Vibrate { get; set; }
[<Android.Runtime.Register("vibrate")>]
member this.Vibrate : int64[] with get, set

属性值

Int64[]

旧式振动模式,表示为交替等待和振动持续时间(以毫秒为单位)。

特性

注解

此字段在 API 级别 26 中已弃用。 使用 NotificationChannel.getVibrationPattern()。

要振动的图案。 若要振动默认模式,请参阅默认值。

Android 参考。android.app.Notification.vibrate

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于