語言

AppWidgetManager.ActionAppwidgetConfigure 欄位

定義

在設定 AppWidget 並加入主機時發送。

[Android.Runtime.Register("ACTION_APPWIDGET_CONFIGURE")]
public const string ActionAppwidgetConfigure;
[<Android.Runtime.Register("ACTION_APPWIDGET_CONFIGURE")>]
val mutable ActionAppwidgetConfigure : string

欄位值

屬性

備註

在設定 AppWidget 並加入主機時發送。 此動作不會以廣播方式傳送給 AppWidget 提供者,而是以 startActivity 形式傳送給 AppWidgetProviderInfo AppWidgetProviderInfo meta-data。

意圖會包含以下額外內容:<表格><tr><td><#EXTRA_APPWIDGET_ID/td<>>需要設定的 appWidgetId。</td></tr></table>

如果你使用android.app.Activity#RESULT_OKandroid.app.Activity#setResult Activity.setResult(),應用程式小工具將會被加入,並且你會收到#ACTION_APPWIDGET_UPDATE該 AppWidget 的廣播。 如果你回來 android.app.Activity#RESULT_CANCELED,主機會取消新增內容,且不會顯示這個 AppWidget,你會收到 #ACTION_APPWIDGET_DELETED 廣播。

Java 文件 android.appwidget.AppWidgetManager.ACTION_APPWIDGET_CONFIGURE。

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

適用於