DevicePolicyManager.SetShortSupportMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetShortSupportMessage(ComponentName, ICharSequence) |
Called by a device admin to set the short support message. |
SetShortSupportMessage(ComponentName, String) |
Called by a device admin to set the short support message. |
SetShortSupportMessage(ComponentName, ICharSequence)
Called by a device admin to set the short support message.
[Android.Runtime.Register("setShortSupportMessage", "(Landroid/content/ComponentName;Ljava/lang/CharSequence;)V", "GetSetShortSupportMessage_Landroid_content_ComponentName_Ljava_lang_CharSequence_Handler", ApiSince=24)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_SUPPORT_MESSAGE")]
public virtual void SetShortSupportMessage (Android.Content.ComponentName? admin, Java.Lang.ICharSequence? message);
[<Android.Runtime.Register("setShortSupportMessage", "(Landroid/content/ComponentName;Ljava/lang/CharSequence;)V", "GetSetShortSupportMessage_Landroid_content_ComponentName_Ljava_lang_CharSequence_Handler", ApiSince=24)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_SUPPORT_MESSAGE")>]
abstract member SetShortSupportMessage : Android.Content.ComponentName * Java.Lang.ICharSequence -> unit
override this.SetShortSupportMessage : Android.Content.ComponentName * Java.Lang.ICharSequence -> unit
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with. Null if the
caller is not a device admin.
- message
- ICharSequence
Short 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 short support message. This will be displayed to the user in settings screens where functionality has been disabled by the admin. The message should be limited to a short statement such as "This setting is disabled by your administrator. Contact someone
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
SetShortSupportMessage(ComponentName, String)
Called by a device admin to set the short support message.
public void SetShortSupportMessage (Android.Content.ComponentName? admin, string? message);
member this.SetShortSupportMessage : Android.Content.ComponentName * string -> unit
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with. Null if the
caller is not a device admin.
- message
- String
Short 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 short support message. This will be displayed to the user in settings screens where functionality has been disabled by the admin. The message should be limited to a short statement such as "This setting is disabled by your administrator. Contact someone
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.