简体   繁体   English

Rhomobile:更新通知/状态栏

[英]Rhomobile: Updating Notification/Status Bar

I am writing an app where I have an item with an expiry date. 我正在编写一个应用程序,其中有一个带有到期日期的商品。 I want to check the expiry date and if it is in the past, put a message in the notification/status bar (icon and message). 我要检查过期日期,如果是过去的日期,请在通知/状态栏中输入一条消息(图标和消息)。

This sounds trivial, but I am struggling to find any code snippets that demonstrate how to update the notification/status bar. 这听起来微不足道,但是我正在努力寻找任何代码片段来演示如何更新通知/状态栏。

Does anyone have any code or a walkthrough on how to achieve this? 是否有人有任何代码或有关如何实现此目标的演练?

Many thanks 非常感谢

You can use Vibrate, Beeper, LED Flash or a popup. 您可以使用振动,蜂鸣器,LED闪光灯或弹出窗口。 Please refer the link http://docs.rhomobile.com/en/4.0.0/guide/device_hardware_key_handling for further details. 请参阅链接http://docs.rhomobile.com/en/4.0.0/guide/device_hardware_key_handling了解更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM