语言

DevicePolicyManager.SetOrganizationColor(ComponentName, Color) 方法

定义

由托管配置文件的配置文件所有者调用以设置用于自定义的颜色。

[Android.Runtime.Register("setOrganizationColor", "(Landroid/content/ComponentName;I)V", "GetSetOrganizationColor_Landroid_content_ComponentName_IHandler", ApiSince=24)]
public virtual void SetOrganizationColor(Android.Content.ComponentName admin, Android.Graphics.Color color);
[<Android.Runtime.Register("setOrganizationColor", "(Landroid/content/ComponentName;I)V", "GetSetOrganizationColor_Landroid_content_ComponentName_IHandler", ApiSince=24)>]
abstract member SetOrganizationColor : Android.Content.ComponentName * Android.Graphics.Color -> unit
override this.SetOrganizationColor : Android.Content.ComponentName * Android.Graphics.Color -> unit

参数

admin
ComponentName

DeviceAdminReceiver此请求与此请求相关联。

color
Color

要使用的颜色的 24 位 (0xRRGGBB) 表示形式。

特性

注解

由托管配置文件的配置文件所有者调用以设置用于自定义的颜色。 此颜色用作该用户的确认凭据屏幕的背景色。 默认颜色为 teal (#00796B)。

可以使用 确认凭据屏幕。

从 Android R 开始,组织颜色将不再用作确认凭据屏幕的背景色。

此成员已弃用。 从 android.os.Build.VERSION_CODES#R中,组织颜色永远不会用作确认凭据屏幕的背景色。

Java文档android.app.admin.DevicePolicyManager.setOrganizationColor(android.content.ComponentName, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于