PolicyUpdateReceiver.OnReceive(Context, Intent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
攔截標準政策更新廣播。
[Android.Runtime.Register("onReceive", "(Landroid/content/Context;Landroid/content/Intent;)V", "", ApiSince=34)]
public override sealed void OnReceive(Android.Content.Context? context, Android.Content.Intent? intent);
[<Android.Runtime.Register("onReceive", "(Landroid/content/Context;Landroid/content/Intent;)V", "", ApiSince=34)>]
override this.OnReceive : Android.Content.Context * Android.Content.Intent -> unit
參數
- context
- Context
接收器運行的情境。
- intent
- Intent
意圖正在被接收。
- 屬性
備註
攔截標準政策更新廣播。 實作不應覆寫此方法,而應依賴回調。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。