AppWidgetManager.ActionAppwidgetConfigure 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在設定 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。