如何显示与警报小部件(时钟APP)相同的小部件?

编程入门 行业动态 更新时间:2024-10-21 12:49:34
本文介绍了如何显示与警报小部件(时钟APP)相同的小部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要执行与Clock Alarm功能相同的应用程序.一旦我们将闹钟设置为3.15PM之类的时间(即使应用未处于运行状态),它也会显示在

I need to do the app same as Clock Alarm functionality. Once we set the Alarm for some time like 3.15PM (Even app is not in running state) It shows in

  • 今日通知"屏幕-

  • Today Notification screen -

    我们可以使用APP Extension(使用用户默认设置)执行此操作(您的警报...),对吗?

    we can do this(your alarm......) using APP Extension (using User defaults), right?

  • 为弹出屏幕

  • As Pop up screen

    在锁定屏幕上弹出警报-

    Alarm Pop Up in lock screen -

  • 我的问题-

    a.我们如何实现2和3,这是同一个APP扩展概念吗?

    a. How can we achieve both 2 and 3, Is this a same APP Extension concept?

    b.在First中-我相信他们使用了用户默认设置,是否可以像定期检查Web服务那样在APP Extension中进行API访问?

    b. In First - I believe they used User defaults, Can we do the API access in APP Extension like checking web service periodically?

    请提出解决方案/想法以实现此目标.

    Please suggest solution/idea to achieve this.

    谢谢!

    推荐答案

    否,这与应用程序扩展或窗口小部件不一样.我也不要相信有可能做您想做的事情.

    No, this is not the same thing as an app extension or widget. I also, don't believe its possible to do what you are trying to do.

    更多推荐

    如何显示与警报小部件(时钟APP)相同的小部件?

    本文发布于:2023-11-27 03:43:32,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1636434.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:部件   警报   时钟   APP

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!