DevicePolicyManager.GetPermittedCrossProfileNotificationListeners 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.
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
- admin
- ComponentName
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.
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.