DevicePolicyManager.GetOrganizationColor(ComponentName) Method

Definition

Called by a profile owner of a managed profile to retrieve the color used for customization.

[Android.Runtime.Register("getOrganizationColor", "(Landroid/content/ComponentName;)I", "GetGetOrganizationColor_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual int GetOrganizationColor (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getOrganizationColor", "(Landroid/content/ComponentName;)I", "GetGetOrganizationColor_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member GetOrganizationColor : Android.Content.ComponentName -> int
override this.GetOrganizationColor : Android.Content.ComponentName -> int

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Returns

The 24bit (0xRRGGBB) representation of the color to be used.

Attributes

Remarks

Called by a profile owner of a managed profile to retrieve the color used for customization. This color is used as background color of the confirm credentials screen for that user.

This member is deprecated. From android.os.Build.VERSION_CODES#R, the organization color is never used as the background color of the confirm credentials screen.

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