DevicePolicyManager.SetOrganizationColor(ComponentName, Color) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
由托管配置文件的配置文件所有者调用以设置用于自定义的颜色。
[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中,组织颜色永远不会用作确认凭据屏幕的背景色。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。