Share via


DevicePolicyManager.GetCrossProfileCallerIdDisabled(ComponentName) Method

Definition

Called by a profile owner of a managed profile to determine whether or not caller-Id information has been disabled.

[Android.Runtime.Register("getCrossProfileCallerIdDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCrossProfileCallerIdDisabled_Landroid_content_ComponentName_Handler")]
public virtual bool GetCrossProfileCallerIdDisabled (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getCrossProfileCallerIdDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCrossProfileCallerIdDisabled_Landroid_content_ComponentName_Handler")>]
abstract member GetCrossProfileCallerIdDisabled : Android.Content.ComponentName -> bool
override this.GetCrossProfileCallerIdDisabled : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Returns

Attributes

Remarks

Called by a profile owner of a managed profile to determine whether or not caller-Id information has been disabled.

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, this will return true when #setManagedProfileCallerIdAccessPolicy(PackagePolicy) has been set with a non-null policy whose policy type is NOT PackagePolicy#PACKAGE_POLICY_BLOCKLIST

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

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