共用方式為


NotificationListenerService.OnNotificationChannelGroupModified 方法

定義

實作這個方法來瞭解通知通道群組修改。

[Android.Runtime.Register("onNotificationChannelGroupModified", "(Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannelGroup;I)V", "GetOnNotificationChannelGroupModified_Ljava_lang_String_Landroid_os_UserHandle_Landroid_app_NotificationChannelGroup_IHandler", ApiSince=26)]
public virtual void OnNotificationChannelGroupModified (string? pkg, Android.OS.UserHandle? user, Android.App.NotificationChannelGroup? group, Android.Service.Notification.NotificationChannelOrGroupEventType modificationType);
[<Android.Runtime.Register("onNotificationChannelGroupModified", "(Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannelGroup;I)V", "GetOnNotificationChannelGroupModified_Ljava_lang_String_Landroid_os_UserHandle_Landroid_app_NotificationChannelGroup_IHandler", ApiSince=26)>]
abstract member OnNotificationChannelGroupModified : string * Android.OS.UserHandle * Android.App.NotificationChannelGroup * Android.Service.Notification.NotificationChannelOrGroupEventType -> unit
override this.OnNotificationChannelGroupModified : string * Android.OS.UserHandle * Android.App.NotificationChannelGroup * Android.Service.Notification.NotificationChannelOrGroupEventType -> unit

參數

pkg
String

群組所屬的封裝。

user
UserHandle

進行變更的使用者。

group
NotificationChannelGroup

已變更的群組。

modificationType
NotificationChannelOrGroupEventType

#NOTIFICATION_CHANNEL_OR_GROUP_ADDED其中一個、 #NOTIFICATION_CHANNEL_OR_GROUP_UPDATED#NOTIFICATION_CHANNEL_OR_GROUP_DELETED

屬性

備註

實作這個方法來瞭解通知通道群組修改。

呼叫端必須有 CompanionDeviceManager#getAssociations() an associated device 才能接收此回呼。

android.service.notification.NotificationListenerService.onNotificationChannelGroupModified(java.lang.String, android.os.UserHandle, android.app.NotificationChannelGroup, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於