DevicePolicyManager.SetCrossProfileCalendarPackages Method

Definition

Allows a set of packages to access cross-profile calendar APIs.

[Android.Runtime.Register("setCrossProfileCalendarPackages", "(Landroid/content/ComponentName;Ljava/util/Set;)V", "GetSetCrossProfileCalendarPackages_Landroid_content_ComponentName_Ljava_util_Set_Handler", ApiSince=29)]
public virtual void SetCrossProfileCalendarPackages (Android.Content.ComponentName admin, System.Collections.Generic.ICollection<string>? packageNames);
[<Android.Runtime.Register("setCrossProfileCalendarPackages", "(Landroid/content/ComponentName;Ljava/util/Set;)V", "GetSetCrossProfileCalendarPackages_Landroid_content_ComponentName_Ljava_util_Set_Handler", ApiSince=29)>]
abstract member SetCrossProfileCalendarPackages : Android.Content.ComponentName * System.Collections.Generic.ICollection<string> -> unit
override this.SetCrossProfileCalendarPackages : Android.Content.ComponentName * System.Collections.Generic.ICollection<string> -> unit

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with

packageNames
ICollection<String>

set of packages to be allowlisted

Attributes

Remarks

Allows a set of packages to access cross-profile calendar APIs.

Called by a profile owner of a managed profile.

Calling with a null value for the set disables the restriction so that all packages are allowed to access cross-profile calendar APIs. Calling with an empty set disallows all packages from accessing cross-profile calendar APIs. If this method isn't called, no package is allowed to access cross-profile calendar APIs by default.

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

Java documentation for android.app.admin.DevicePolicyManager.setCrossProfileCalendarPackages(android.content.ComponentName, java.util.Set<java.lang.String>).

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