Freigeben über


DevicePolicyManager.Reboot(ComponentName) Method

Definition

Called by device owner to reboot the device.

[Android.Runtime.Register("reboot", "(Landroid/content/ComponentName;)V", "GetReboot_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual void Reboot (Android.Content.ComponentName admin);
[<Android.Runtime.Register("reboot", "(Landroid/content/ComponentName;)V", "GetReboot_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member Reboot : Android.Content.ComponentName -> unit
override this.Reboot : Android.Content.ComponentName -> unit

Parameters

admin
ComponentName

Which device owner the request is associated with.

Attributes

Remarks

Called by device owner to reboot the device. If there is an ongoing call on the device, throws an IllegalStateException.

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