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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。