DevicePolicyManager.GetOrganizationColor(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.