android中AppWidgetManager的解析

android.appwidget.AppWidgetManager

 

For more information about creating app widgets, read the App Widgets developer guide.

请阅读App Widgets开发者指南了解更多关于创建app widgets的信息。


Summary

总结如下:


Constants

常量:


String ACTION_APPWIDGET_CONFIGURE Sent when it is time to configure your AppWidget while it is being added to a host.

字符串类型 ACTION_APPWIDGET_CONFIGURE : 当配置你的AppWidget时它被添加到主机上面并发送。


String ACTION_APPWIDGET_DELETED Sent when an instance of an AppWidget is deleted from its host.

字符串类型 ACTION_APPWIDGET_DELETED :当一个AppWidget的实例从主机上面被删除时发送。


String ACTION_APPWIDGET_DISABLED Sent when an instance of an AppWidget is removed from the last host.

字符串类型 ACTION_APPWIDGET_DISABLED:当一个AppWidget实例从最后一个主机上面清除时发送。


String ACTION_APPWIDGET_ENABLED Sent when an instance of an AppWidget is added to a host for the first time.

字符串类型 ACTION_APPWIDGET_ENABLE:当一个AppWidget的实例在第一时间添加到一个主机上时发送。


String ACTION_APPWIDGET_PICK Send this from your AppWidgetHost activity when you want to pick an AppWidget to display.

字符串类型 ACTION_APPWIDGET_PICK:当你想要从你的AppWidgetHost activity中选择一个AppWidget展示时发送这个。


String ACTION_APPWIDGET_UPDATE Sent when it is time to update your AppWidget.

字符串类型 ACTION_APPWIDGET_UPDATE:当你更新你的AppWidget时发送。


String EXTRA_APPWIDGET_ID An intent extra that contains one appWidgetId.

字符串类型 EXTRA_APPWIDGET_ID :一个Intent包含额外的appWidgetId。


String EXTRA_APPWIDGET_IDS An intent extra that contains multiple appWidgetIds.

字符串类型 EXTRA_APPWIDGET_IDS:一个Intent额外包含多个appWidgetIds。


String EXTRA_CUSTOM_EXTRAS An intent extra to pass to the AppWidget picker containing a List of Bundle objects to mix in to the list of AppWidgets that are installed. It will be added to the extras object on the Intent that is returned from the picker activity. 

字符串类型 EXTRA_CUSTOM_EXTRAS 一个intent对象额外的包含Bundle对象列表,并且混在这个列表里面的AppWidgets已经被安装到AppWidget选择器中。


String EXTRA_CUSTOM_INFO An intent extra to pass to the AppWidget picker containing a List of AppWidgetProviderInfo objects to mix in to the list of AppWidgets that are installed.

字符串类型 EXTRA_CUSTOM_INFO 一个intent对象额外的包含AppWidgetProviderInfo 对象的列表并且混在列表中AppWidgets已经被安装到AppWidget选择器。


int INVALID_APPWIDGET_ID A sentiel value that the AppWidget manager will never return as a appWidgetId.

整数类型 INVALID_APPWIDGET_ID :一个AppWidget管理器永远也不会像appWidgetId一样返回的sentiel值。


String META_DATA_APPWIDGET_PROVIDER Field for the manifest meta-data tag.

字符串类型 META_DATA_APPWIDGET_PROVIDER :元数据标志的清单文件。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值