DeviceAdminReceiver.OnSystemUpdatePending(Context, Intent, Int64) 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.
Called when the information about a pending system update is available.
[Android.Runtime.Register("onSystemUpdatePending", "(Landroid/content/Context;Landroid/content/Intent;J)V", "GetOnSystemUpdatePending_Landroid_content_Context_Landroid_content_Intent_JHandler", ApiSince=23)]
public virtual void OnSystemUpdatePending (Android.Content.Context context, Android.Content.Intent intent, long receivedTime);
[<Android.Runtime.Register("onSystemUpdatePending", "(Landroid/content/Context;Landroid/content/Intent;J)V", "GetOnSystemUpdatePending_Landroid_content_Context_Landroid_content_Intent_JHandler", ApiSince=23)>]
abstract member OnSystemUpdatePending : Android.Content.Context * Android.Content.Intent * int64 -> unit
override this.OnSystemUpdatePending : Android.Content.Context * Android.Content.Intent * int64 -> unit
Parameters
- context
- Context
The running context as per #onReceive
.
- intent
- Intent
The received intent as per #onReceive
.
- receivedTime
- Int64
The time as given by System#currentTimeMillis()
indicating when
the current pending update was first available. -1 if no pending update is available.
- Attributes
Remarks
Called when the information about a pending system update is available.
Allows the receiver to be notified when information about a pending system update is available from the system update service. The same pending system update can trigger multiple calls to this method, so it is necessary to examine the incoming parameters for details about the update.
This callback is only applicable to device owners and profile owners.
To get further information about a pending system update (for example, whether or not the update is a security patch), the device owner or profile owner can call DevicePolicyManager#getPendingSystemUpdate
.
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.