语言

DevicePolicyManager.GetShortSupportMessageFormatted(ComponentName) 方法

定义

由设备管理员或权限持有者 android.Manifest.permission#MANAGE_DEVICE_POLICY_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

参数

admin
ComponentName

DeviceAdminReceiver此请求与此请求相关联。 如果调用方不是设备管理员,则为 Null。

返回

如果未设置任何消息,则为 <a0/a0> 或 null 设置的消息。

特性

注解

由设备管理员或权限持有者 android.Manifest.permission#MANAGE_DEVICE_POLICY_SUPPORT_MESSAGE 调用以获取简短支持消息。

Java文档android.app.admin.DevicePolicyManager.getShortSupportMessage(android.content.ComponentName)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于