DevicePolicyManager.GetPermittedCrossProfileNotificationListeners Method

Definition

Returns the list of packages installed on the primary user that allowed to use a android.service.notification.NotificationListenerService to receive notifications from this managed profile, as set by the profile owner.

[Android.Runtime.Register("getPermittedCrossProfileNotificationListeners", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetPermittedCrossProfileNotificationListeners_Landroid_content_ComponentName_Handler", ApiSince=26)]
public virtual System.Collections.Generic.IList<string>? GetPermittedCrossProfileNotificationListeners (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getPermittedCrossProfileNotificationListeners", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetPermittedCrossProfileNotificationListeners_Landroid_content_ComponentName_Handler", ApiSince=26)>]
abstract member GetPermittedCrossProfileNotificationListeners : Android.Content.ComponentName -> System.Collections.Generic.IList<string>
override this.GetPermittedCrossProfileNotificationListeners : Android.Content.ComponentName -> System.Collections.Generic.IList<string>

Parameters

Returns

Attributes

Remarks

Returns the list of packages installed on the primary user that allowed to use a android.service.notification.NotificationListenerService to receive notifications from this managed profile, as set by the profile owner.

An empty list means no notification listener services except system ones are allowed. A null return value indicates that all notification listeners are allowed.

Java documentation for android.app.admin.DevicePolicyManager.getPermittedCrossProfileNotificationListeners(android.content.ComponentName).

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