Share via


DevicePolicyManager.GetShortSupportMessageFormatted(ComponentName) Method

Definition

Called by a device admin or holder of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_SUPPORT_MESSAGE to get the short support message.

[Android.Runtime.Register("getShortSupportMessage", "(Landroid/content/ComponentName;)Ljava/lang/CharSequence;", "GetGetShortSupportMessage_Landroid_content_ComponentName_Handler", ApiSince=24)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_SUPPORT_MESSAGE")]
public virtual Java.Lang.ICharSequence? GetShortSupportMessageFormatted (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getShortSupportMessage", "(Landroid/content/ComponentName;)Ljava/lang/CharSequence;", "GetGetShortSupportMessage_Landroid_content_ComponentName_Handler", ApiSince=24)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_SUPPORT_MESSAGE")>]
abstract member GetShortSupportMessageFormatted : Android.Content.ComponentName -> Java.Lang.ICharSequence
override this.GetShortSupportMessageFormatted : Android.Content.ComponentName -> Java.Lang.ICharSequence

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with. Null if the caller is not a device admin.

Returns

The message set by #setShortSupportMessage(ComponentName, CharSequence) or null if no message has been set.

Attributes

Remarks

Called by a device admin or holder of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_SUPPORT_MESSAGE to get the short support message.

Java documentation for android.app.admin.DevicePolicyManager.getShortSupportMessage(android.content.ComponentName).

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