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 td<>>The appWidgetId to configure.</td></tr></table>

如果返回 android.app.Activity#RESULT_OK using android.app.Activity#setResult Activity.setResult(),则会添加 AppWidget,并且你将收到 #ACTION_APPWIDGET_UPDATE 此 AppWidget 的广播。 如果返回 android.app.Activity#RESULT_CANCELED,主机将取消添加而不显示此 AppWidget,并且你将收到广播 #ACTION_APPWIDGET_DELETED

Java文档android.appwidget.AppWidgetManager.ACTION_APPWIDGET_CONFIGURE

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于