語言

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 上的其他各種方法。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於