NotificationListenerService.OnNotificationChannelGroupModified Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.