DeviceAdminReceiver.OnSystemUpdatePending(Context, Intent, Int64) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當有系統更新待處理資訊時,會打電話給我。
[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
參數
- context
- Context
運行上下文如下 #onReceive。
- intent
- Intent
接收意圖如下 #onReceive。
- receivedTime
- Int64
System#currentTimeMillis()以表示目前待更新首次可用的時間為準。 -1 則無待更新。
- 屬性
備註
當有系統更新待處理資訊時,會打電話給我。
當系統更新服務提供待處理系統更新資訊時,接收者能收到通知。 同一待處理的系統更新可能會觸發多次呼叫此方法,因此有必要檢視輸入參數以獲取更新細節。
此回調僅適用於裝置擁有者及設定檔擁有者。
若想進一步了解待處理的系統更新(例如該更新是否為安全修補程式),裝置擁有者或設定檔擁有者可以呼叫 DevicePolicyManager#getPendingSystemUpdate。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。