开发自定义 Android 电源菜单小部件
Develop custom Android Power Menu widgets
是否可以开发 Android 11 个显示在电源菜单上的小部件,完全 就像 Google Pay 的卡列表?
到目前为止,我发现有一些关于 设备控制 的有用指南,这是一个非常适合家庭自动化和自动化的功能。例如,official article on Device Controls 显示了一个完整的电源菜单,带有信用卡刷卡和家庭自动化控制。
我对开发自定义开源小部件来浏览保真(条形码)卡片很感兴趣。我已经看到 Quick Access Wallet 功能是用来将支付方式显示为可刷卡的功能,但我有充分的理由不走这条路。首先,它是为持有NFC权限的支付应用设计的,其次,它会禁用Google使用它的人默认支付应用(使用其他支付服务的人会遇到同样的问题)。
并且设备控件是模板化的,适合显示在 Google 主页的指定区域。
所以我想问一下是否有 Android API 来实现完全自定义的小部件以显示在电源菜单中。当然,我可以好心地向用户征求任何必要的许可。
我假设 Google Pay 本身是在 Android 框架之上开发的应用程序,与 OS 几乎没有任何特殊之处 permission/policy-exception/whitelist ,以及其他支付应用程序。
I'd like to ask if there are Android APIs to implement a fully customized widget to appear in the power menu
不在 Android 11 中,至少在 public API 方面是这样。
I start from the assumption that Google Pay itself is an application developed on top of Android framework, and has little to no special permission/policy-exception/whitelist from the OS, along with other payment applications.
这是一个非常慷慨的假设。恕我直言,不要假设您可以做任何由 Google 或您正在尝试的设备制造商所做的事情。
是否可以开发 Android 11 个显示在电源菜单上的小部件,完全 就像 Google Pay 的卡列表?
到目前为止,我发现有一些关于 设备控制 的有用指南,这是一个非常适合家庭自动化和自动化的功能。例如,official article on Device Controls 显示了一个完整的电源菜单,带有信用卡刷卡和家庭自动化控制。
我对开发自定义开源小部件来浏览保真(条形码)卡片很感兴趣。我已经看到 Quick Access Wallet 功能是用来将支付方式显示为可刷卡的功能,但我有充分的理由不走这条路。首先,它是为持有NFC权限的支付应用设计的,其次,它会禁用Google使用它的人默认支付应用(使用其他支付服务的人会遇到同样的问题)。
并且设备控件是模板化的,适合显示在 Google 主页的指定区域。
所以我想问一下是否有 Android API 来实现完全自定义的小部件以显示在电源菜单中。当然,我可以好心地向用户征求任何必要的许可。
我假设 Google Pay 本身是在 Android 框架之上开发的应用程序,与 OS 几乎没有任何特殊之处 permission/policy-exception/whitelist ,以及其他支付应用程序。
I'd like to ask if there are Android APIs to implement a fully customized widget to appear in the power menu
不在 Android 11 中,至少在 public API 方面是这样。
I start from the assumption that Google Pay itself is an application developed on top of Android framework, and has little to no special permission/policy-exception/whitelist from the OS, along with other payment applications.
这是一个非常慷慨的假设。恕我直言,不要假设您可以做任何由 Google 或您正在尝试的设备制造商所做的事情。