DevicePolicyManager.SetStartUserSessionMessage Method

Definition

Overloads

SetStartUserSessionMessage(ComponentName, ICharSequence)

Called by a device owner to specify the user session start message.

SetStartUserSessionMessage(ComponentName, String)

Called by a device owner to specify the user session start message.

SetStartUserSessionMessage(ComponentName, ICharSequence)

Called by a device owner to specify the user session start message.

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

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with.

startUserSessionMessage
ICharSequence

message for starting user session, or null to use system default message.

Attributes

Remarks

Called by a device owner to specify the user session start message. This may be displayed during a user switch.

The message should be limited to a short statement or it may be truncated.

If the message needs to be localized, it is the responsibility of the DeviceAdminReceiver to listen to the Intent#ACTION_LOCALE_CHANGED broadcast and set a new version of this message accordingly.

Java documentation for android.app.admin.DevicePolicyManager.setStartUserSessionMessage(android.content.ComponentName, java.lang.CharSequence).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetStartUserSessionMessage(ComponentName, String)

Called by a device owner to specify the user session start message.

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

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with.

startUserSessionMessage
String

message for starting user session, or null to use system default message.

Remarks

Called by a device owner to specify the user session start message. This may be displayed during a user switch.

The message should be limited to a short statement or it may be truncated.

If the message needs to be localized, it is the responsibility of the DeviceAdminReceiver to listen to the Intent#ACTION_LOCALE_CHANGED broadcast and set a new version of this message accordingly.

Java documentation for android.app.admin.DevicePolicyManager.setStartUserSessionMessage(android.content.ComponentName, java.lang.CharSequence).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to