Share via


DevicePolicyManager.SetLongSupportMessage Method

Definition

Overloads

SetLongSupportMessage(ComponentName, ICharSequence)

Called by a device admin to set the long support message.

SetLongSupportMessage(ComponentName, String)

Called by a device admin to set the long support message.

SetLongSupportMessage(ComponentName, ICharSequence)

Called by a device admin to set the long support message.

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

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

message
ICharSequence

Long message to be displayed to the user in settings or null to clear the existing message.

Attributes

Remarks

Called by a device admin to set the long support message. This will be displayed to the user in the device administrators settings screen. If the message is longer than 20000 characters it may be truncated.

If the long support 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 string accordingly.

Java documentation for android.app.admin.DevicePolicyManager.setLongSupportMessage(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

SetLongSupportMessage(ComponentName, String)

Called by a device admin to set the long support message.

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

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

message
String

Long message to be displayed to the user in settings or null to clear the existing message.

Remarks

Called by a device admin to set the long support message. This will be displayed to the user in the device administrators settings screen. If the message is longer than 20000 characters it may be truncated.

If the long support 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 string accordingly.

Java documentation for android.app.admin.DevicePolicyManager.setLongSupportMessage(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