语言

NotificationChannel.HasUserSetImportance 属性

定义

返回用户是否选择了此通道的重要性,要么确认应用的初始选择,要么将其更改为更高或更低。

public bool HasUserSetImportance { [Android.Runtime.Register("hasUserSetImportance", "()Z", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("hasUserSetImportance", "()Z", "", ApiSince=29)>]
member this.HasUserSetImportance : bool

属性值

true 当重要性被标记为用户选择或确认时;否则,为 false.

特性

注解

返回用户是否选择了此通道的重要性,要么确认应用的初始选择,要么将其更改为更高或更低。

Android 参考。android.app.NotificationChannel.hasUserSetImportance

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

适用于