BREW App State Transition based BREW3.1.x

本文详细介绍了应用程序在不同状态之间的转换过程,包括启动、挂起、后台运行及关闭等状态,并解释了触发这些状态变化的事件及其对应的代码指令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

app state transition

 

 

Related Explain as below:

1

Code:

APPSTATE_STOPPED -> APPSTATE_STARTING

Request for app to start. If app can be started then, 2 or 3-based on

whether it has to be started in FG or BG.



2.1 and 2.2

Code:

APPSTATE_STARTING -> APPSTATE_TOP_VISIBLE or APPSTATE_BACKGROUND

Based on whether it has to be started in FG or BG.

2.1 Send EVT_APP_START

2.2 Send EVT_APP_START_BACKGROUND

 

 

 

 

 

3.1

Code:

APPSTATE_TOP_VISIBLE -> APPSTATE_SUSPENDED

On EVT_APP_SUSPEND


3.2

Code:

APPSTATE_SUSPENDED -> APPSTATE_TOP_VISIBLE

On EVT_APP_RESUME


4.1

Code:

APPSTATE_TOP_VISIBLE -> APPSTATE_BACKGROUND

On EVT_APP_STOP, set dwParam to FALSE. The top-visible application can force

the EVT_APP_STOP event by calling ISHELL_CloseApplet() on itself.


4.2

Code:

APPSTATE_BACKGROUND -> APPSTATE_TOP_VISIBLE

Any background application may return to the foreground by calling

ISHELL_StartApplet() on itself, which will make it top-visible.


5

Code:

APPSTATE_BACKGROUND    }

APPSTATE_TOP_VISIBLE   } -> APPSTATE_CLOSING

APPSTATE_SUSPENDED     }

On EVT_APP_STOP event.Can come when

 - BREW closes the application on shutdown

 - Call ISHELL_CloseApplet() with the clsid of the app.

Code:

APPSTATE_CLOSING -> APPSTATE_STOPPED

App closed and item removed from history

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值