DevicePolicyManager.GetPendingSystemUpdate(ComponentName) 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.
Get information about a pending system update.
[Android.Runtime.Register("getPendingSystemUpdate", "(Landroid/content/ComponentName;)Landroid/app/admin/SystemUpdateInfo;", "GetGetPendingSystemUpdate_Landroid_content_ComponentName_Handler", ApiSince=26)]
public virtual Android.App.Admin.SystemUpdateInfo? GetPendingSystemUpdate (Android.Content.ComponentName admin);
[Android.Runtime.Register("getPendingSystemUpdate", "(Landroid/content/ComponentName;)Landroid/app/admin/SystemUpdateInfo;", "GetGetPendingSystemUpdate_Landroid_content_ComponentName_Handler", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_QUERY_SYSTEM_UPDATES")]
public virtual Android.App.Admin.SystemUpdateInfo? GetPendingSystemUpdate (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getPendingSystemUpdate", "(Landroid/content/ComponentName;)Landroid/app/admin/SystemUpdateInfo;", "GetGetPendingSystemUpdate_Landroid_content_ComponentName_Handler", ApiSince=26)>]
abstract member GetPendingSystemUpdate : Android.Content.ComponentName -> Android.App.Admin.SystemUpdateInfo
override this.GetPendingSystemUpdate : Android.Content.ComponentName -> Android.App.Admin.SystemUpdateInfo
[<Android.Runtime.Register("getPendingSystemUpdate", "(Landroid/content/ComponentName;)Landroid/app/admin/SystemUpdateInfo;", "GetGetPendingSystemUpdate_Landroid_content_ComponentName_Handler", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_QUERY_SYSTEM_UPDATES")>]
abstract member GetPendingSystemUpdate : Android.Content.ComponentName -> Android.App.Admin.SystemUpdateInfo
override this.GetPendingSystemUpdate : Android.Content.ComponentName -> Android.App.Admin.SystemUpdateInfo
Parameters
- admin
- ComponentName
Which profile or device owner this request is associated with.
Returns
Information about a pending system update or null
if no update pending.
- Attributes
Remarks
Get information about a pending system update.
Can be called by device or profile owners, and starting from Android android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM
, holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_QUERY_SYSTEM_UPDATES
.
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.