共用方式為


AppWidgetProvider.OnReceive(Context, Intent) 方法

定義

實作 BroadcastReceiver#onReceive 以分派對AppWidgetProvider上各種其他方法的呼叫。

[Android.Runtime.Register("onReceive", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnReceive_Landroid_content_Context_Landroid_content_Intent_Handler")]
public override void OnReceive(Android.Content.Context? context, Android.Content.Intent? intent);
[<Android.Runtime.Register("onReceive", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnReceive_Landroid_content_Context_Landroid_content_Intent_Handler")>]
override this.OnReceive : Android.Content.Context * Android.Content.Intent -> unit

參數

context
Context

接收者執行所在的內容。

intent
Intent

正在接收的意圖。

屬性

備註

實作 BroadcastReceiver#onReceive 以分派對AppWidgetProvider上各種其他方法的呼叫。

android.appwidget.AppWidgetProvider.onReceive(android.content.Context, android.content.Intent)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於