語言

DevicePolicyManager.SetDeviceOwnerLockScreenInfo 方法

定義

多載

名稱 Description
SetDeviceOwnerLockScreenInfo(ComponentName, ICharSequence)

設定裝置擁有者資訊顯示在鎖定畫面上。

SetDeviceOwnerLockScreenInfo(ComponentName, String)

設定裝置擁有者資訊顯示在鎖定畫面上。

SetDeviceOwnerLockScreenInfo(ComponentName, ICharSequence)

設定裝置擁有者資訊顯示在鎖定畫面上。

[Android.Runtime.Register("setDeviceOwnerLockScreenInfo", "(Landroid/content/ComponentName;Ljava/lang/CharSequence;)V", "GetSetDeviceOwnerLockScreenInfo_Landroid_content_ComponentName_Ljava_lang_CharSequence_Handler", ApiSince=24)]
public virtual void SetDeviceOwnerLockScreenInfo(Android.Content.ComponentName? admin, Java.Lang.ICharSequence? info);
[<Android.Runtime.Register("setDeviceOwnerLockScreenInfo", "(Landroid/content/ComponentName;Ljava/lang/CharSequence;)V", "GetSetDeviceOwnerLockScreenInfo_Landroid_content_ComponentName_Ljava_lang_CharSequence_Handler", ApiSince=24)>]
abstract member SetDeviceOwnerLockScreenInfo : Android.Content.ComponentName * Java.Lang.ICharSequence -> unit
override this.SetDeviceOwnerLockScreenInfo : Android.Content.ComponentName * Java.Lang.ICharSequence -> unit

參數

admin
ComponentName

要查查看管理員元件的名稱。 如果呼叫者不是裝置管理員,則為 Null。

info
ICharSequence

裝置擁有者資訊會顯示,取代使用者擁有者資訊。

屬性

備註

設定裝置擁有者資訊顯示在鎖定畫面上。

使用此方法設定的裝置擁有者資訊會覆蓋使用者手動設定的任何擁有者資訊,並防止使用者進一步更改。

如果裝置擁有者資訊為 null 或 為空,則該裝置擁有者資訊會被清除,且在鎖定畫面中顯示使用者擁有者資訊(若已設定)。

如果裝置擁有者資訊只包含空白,鎖定畫面上的訊息將是空白,使用者將無法更改。

若裝置擁有者資訊需要本地化,則需 DeviceAdminReceiver 負責監聽 Intent#ACTION_LOCALE_CHANGED 廣播並相應設定新版本的該字串。

可能由裝置擁有者或組織擁有裝置的設定檔擁有者呼叫。

Java 文件 android.app.admin.DevicePolicyManager.setDeviceOwnerLockScreenInfo(android.content.ComponentName, java.lang.CharSequence)。

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

適用於

SetDeviceOwnerLockScreenInfo(ComponentName, String)

設定裝置擁有者資訊顯示在鎖定畫面上。

public void SetDeviceOwnerLockScreenInfo(Android.Content.ComponentName? admin, string? info);
member this.SetDeviceOwnerLockScreenInfo : Android.Content.ComponentName * string -> unit

參數

admin
ComponentName

要查查看管理員元件的名稱。 如果呼叫者不是裝置管理員,則為 Null。

info
String

裝置擁有者資訊會顯示,取代使用者擁有者資訊。

備註

設定裝置擁有者資訊顯示在鎖定畫面上。

使用此方法設定的裝置擁有者資訊會覆蓋使用者手動設定的任何擁有者資訊,並防止使用者進一步更改。

如果裝置擁有者資訊為 null 或 為空,則該裝置擁有者資訊會被清除,且在鎖定畫面中顯示使用者擁有者資訊(若已設定)。

如果裝置擁有者資訊只包含空白,鎖定畫面上的訊息將是空白,使用者將無法更改。

若裝置擁有者資訊需要本地化,則需 DeviceAdminReceiver 負責監聽 Intent#ACTION_LOCALE_CHANGED 廣播並相應設定新版本的該字串。

可能由裝置擁有者或組織擁有裝置的設定檔擁有者呼叫。

Java 文件 android.app.admin.DevicePolicyManager.setDeviceOwnerLockScreenInfo(android.content.ComponentName, java.lang.CharSequence)。

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

適用於