Udostępnij za pośrednictwem


DevicePolicyManager.SetEndUserSessionMessage Method

Definition

Overloads

SetEndUserSessionMessage(ComponentName, ICharSequence)

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

SetEndUserSessionMessage(ComponentName, String)

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

SetEndUserSessionMessage(ComponentName, ICharSequence)

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

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

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with.

endUserSessionMessage
ICharSequence

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

Attributes

Remarks

Called by a device owner to specify the user session end 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.setEndUserSessionMessage(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

SetEndUserSessionMessage(ComponentName, String)

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

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

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with.

endUserSessionMessage
String

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

Remarks

Called by a device owner to specify the user session end 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.setEndUserSessionMessage(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