Partager via


NotificationListenerService.OnNotificationChannelGroupModified Méthode

Définition

Implémentez cette méthode pour en savoir plus sur les modifications apportées au groupe de canaux de notification.

[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

Paramètres

pkg
String

Package auquel appartient le groupe.

user
UserHandle

Utilisateur sur lequel la modification a été apportée.

group
NotificationChannelGroup

Groupe qui a changé.

modificationType
NotificationChannelOrGroupEventType

Un des #NOTIFICATION_CHANNEL_OR_GROUP_ADDED, #NOTIFICATION_CHANNEL_OR_GROUP_UPDATED, #NOTIFICATION_CHANNEL_OR_GROUP_DELETED. .

Attributs

Remarques

Implémentez cette méthode pour en savoir plus sur les modifications apportées au groupe de canaux de notification.

L’appelant doit avoir CompanionDeviceManager#getAssociations() an associated device pour recevoir ce rappel.

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

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à