NotificationListenerService.OnNotificationChannelGroupModified Method

Definition

Implement this method to learn about notification channel group modifications.

[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

Parameters

pkg
String

The package the group belongs to.

user
UserHandle

The user on which the change was made.

group
NotificationChannelGroup

The group that has changed.

modificationType
NotificationChannelOrGroupEventType

One of #NOTIFICATION_CHANNEL_OR_GROUP_ADDED, #NOTIFICATION_CHANNEL_OR_GROUP_UPDATED, #NOTIFICATION_CHANNEL_OR_GROUP_DELETED.

Attributes

Remarks

Implement this method to learn about notification channel group modifications.

The caller must have CompanionDeviceManager#getAssociations() an associated device in order to receive this callback.

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

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to