Freigeben über


DevicePolicyManager.GetCrossProfileCalendarPackages(ComponentName) Method

Definition

Gets a set of package names that are allowed to access cross-profile calendar APIs.

[Android.Runtime.Register("getCrossProfileCalendarPackages", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetCrossProfileCalendarPackages_Landroid_content_ComponentName_Handler", ApiSince=29)]
public virtual System.Collections.Generic.ICollection<string>? GetCrossProfileCalendarPackages (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getCrossProfileCalendarPackages", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetCrossProfileCalendarPackages_Landroid_content_ComponentName_Handler", ApiSince=29)>]
abstract member GetCrossProfileCalendarPackages : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>
override this.GetCrossProfileCalendarPackages : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with

Returns

the set of names of packages that were previously allowed via #setCrossProfileCalendarPackages(ComponentName, Set), or an empty set if none have been allowed

Attributes

Remarks

Gets a set of package names that are allowed to access cross-profile calendar APIs.

Called by a profile owner of a managed profile.

This member is deprecated. Use #setCrossProfilePackages(ComponentName, Set).

Java documentation for android.app.admin.DevicePolicyManager.getCrossProfileCalendarPackages(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