語言

NotificationManager.ActionNotificationChannelBlockStateChanged 欄位

定義

當通知頻道被封鎖(當 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.getImportance() IMPORTANCE_NONE)或解除封鎖(當 NotificationChannel.getImportance() 不是IMPORTANCE_NONE時,所廣播的意圖)。 這段廣播只會傳送到擁有該頻道的應用程式。 輸入:無 輸出:EXTRA_NOTIFICATION_CHANNEL_ID 輸出:EXTRA_BLOCKED_STATE

Android 參考資料。android.app.NotificationManager.ACTION_NOTIFICATION_CHANNEL_BLOCK_STATE_CHANGED

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於