Share via


DevicePolicyManager.SetCrossProfileCallerIdDisabled Method

Definition

Called by a profile owner of a managed profile to set whether caller-Id information from the managed profile will be shown in the parent profile, for incoming calls.

[Android.Runtime.Register("setCrossProfileCallerIdDisabled", "(Landroid/content/ComponentName;Z)V", "GetSetCrossProfileCallerIdDisabled_Landroid_content_ComponentName_ZHandler")]
public virtual void SetCrossProfileCallerIdDisabled (Android.Content.ComponentName admin, bool disabled);
[<Android.Runtime.Register("setCrossProfileCallerIdDisabled", "(Landroid/content/ComponentName;Z)V", "GetSetCrossProfileCallerIdDisabled_Landroid_content_ComponentName_ZHandler")>]
abstract member SetCrossProfileCallerIdDisabled : Android.Content.ComponentName * bool -> unit
override this.SetCrossProfileCallerIdDisabled : Android.Content.ComponentName * bool -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

disabled
Boolean

If true caller-Id information in the managed profile is not displayed.

Attributes

Remarks

Called by a profile owner of a managed profile to set whether caller-Id information from the managed profile will be shown in the parent profile, for incoming calls.

The calling device admin must be a profile owner. If it is not, a security exception will be thrown.

Starting with android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE, calling this function is similar to calling #setManagedProfileCallerIdAccessPolicy(PackagePolicy) with a PackagePolicy#PACKAGE_POLICY_BLOCKLIST policy type when disabled is false or a PackagePolicy#PACKAGE_POLICY_ALLOWLIST policy type when disabled is true.

This member is deprecated. starting with android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE, use #setManagedProfileCallerIdAccessPolicy(PackagePolicy) instead

Java documentation for android.app.admin.DevicePolicyManager.setCrossProfileCallerIdDisabled(android.content.ComponentName, boolean).

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