语言

NotificationManager.ActionNotificationChannelBlockStateChanged 字段

定义

当 NotificationChannel 被阻止(当 NotificationChannel.getImportance() 被IMPORTANCE_NONE时或取消阻止(当 NotificationChannel.getImportance() 除 IMPORTANCE_NONE 之外的任何内容)时广播的意向。

[Android.Runtime.Register("ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED", ApiSince=28)]
public const string ActionNotificationChannelBlockStateChanged;
[<Android.Runtime.Register("ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED", ApiSince=28)>]
val mutable ActionNotificationChannelBlockStateChanged : string

字段值

特性

注解

当 NotificationChannel 被阻止(当 NotificationChannel.getImportance() 被IMPORTANCE_NONE时或取消阻止(当 NotificationChannel.getImportance() 除 IMPORTANCE_NONE 之外的任何内容)时广播的意向。 此广播仅发送到拥有已更改通道的应用。 输入:无输出:EXTRA_NOTIFICATION_CHANNEL_ID输出:EXTRA_BLOCKED_STATE

Android 参考。android.app.NotificationManager.ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED

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

适用于