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)的顏色表示法。
- 屬性
備註
由受管理設定檔的設定檔擁有者呼叫,設定用於自訂的顏色。 這個顏色會作為該使用者確認憑證畫面的背景色。 預設顏色是青綠色(#00796B)。
確認憑證畫面可用 建立。android.app.KeyguardManager#createConfirmDeviceCredentialIntent
從 Android R 開始,組織顏色將不再作為確認憑證畫面的背景色。
此會員已被棄用。 從 , android.os.Build.VERSION_CODES#R組織顏色絕不會作為確認憑證畫面的背景色。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。