DevicePolicyManager.GetOrganizationColor(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
由托管配置文件的配置文件所有者调用,以检索用于自定义的颜色。
[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
参数
- admin
- ComponentName
DeviceAdminReceiver此请求与此请求相关联。
返回
要使用的颜色的 24 位 (0xRRGGBB) 表示形式。
- 特性
注解
由托管配置文件的配置文件所有者调用,以检索用于自定义的颜色。 此颜色用作该用户的确认凭据屏幕的背景色。
此成员已弃用。 从 android.os.Build.VERSION_CODES#R中,组织颜色永远不会用作确认凭据屏幕的背景色。
Java文档android.app.admin.DevicePolicyManager.getOrganizationColor(android.content.ComponentName)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。