是否可以从快捷方式自动创建一个小部件-Swift IOS

发布于 2025-02-10 11:16:40 字数 198 浏览 0 评论 0原文

进行了一些研究之后,我发现用户可以通过压在主屏幕上,按下左上方按钮,搜索“快捷方式”,然后敲击特定快捷方式来制作捷径。

从此用户(他们不必在您的应用程序捐赠的快捷方式应用程序中添加快捷方式,而只需单击一个按钮)。

因此,我想知道是否也可以为您定义的快捷方式创建一个小部件,用户所要做的就是点击应用程序中的按钮,而不是浏览整个搜索过程。

谢谢

After doing some research I discovered that a user can make a shortcut a widget by holding down on the home-screen, pressing the top left button, searching for "shortcuts", and then tapping on the specific shortcut.

From this article I discovered that it's possible to automatically create a shortcut for the user (they don't have to physically add a shortcut in the shortcuts app that your app donated, instead they can just click a button).

Thus, I was wondering if it's also possible to create a widget for a shortcut you defined, where all the user has to do is tap a button within your app, instead of going through the whole search process.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文