注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

沉默蜂B4A安卓编程

国内资料最全的B4A资料库

 
 
 

日志

 
 

库 Phone > 类 PhoneWakeState  

2017-02-06 18:52:41|  分类: B4A例程 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

库 Phone  类 PhoneWakeState - 沉默蜂 - 沉默蜂B4A安卓编程
 
 
库 Phone > 类 PhoneWakeState   方法:4   属性:0   常量:0   事件:0 

The PhoneWakeState object allows you to prevent the device from turning off the screen. 
Once you call KeepAlive the phone screen will stay on till you call ReleaseKeepAlive. 
It is important to eventually release it. 
A recommended usage is to call KeepAlive in Activity_Resume and call ReleaseKeepAlive in Activity_Pause. 
Note that the user can still turn off the screen by pressing on the power button. 
Calling PartialLock will prevent the CPU from going to sleep even if the user presses on the power button. 
It will not however affect the screen.



库 Phone > 类 PhoneWakeState > 方法 PartialLock 

(锁定电源键,防止进入睡眠,就是用户按了电源键,也不会进入睡眠)
PartialLock 
Acquires a partial lock. This will prevent the CPU from going to sleep, even if the user presses on the power button. 
Make sure to call ReleasePartialLock eventually to release this lock.


库 Phone > 类 PhoneWakeState > 方法 KeepAlive 

(保持屏幕常亮,防止进入睡眠)
KeepAlive ( BrightScreen As boolean ) 
Prevents the device from going to sleep. 
Call ReleaseKeepAlive to release the power lock. 
BrightScreen - Whether to keep the screen bright or dimmed.


库 Phone > 类 PhoneWakeState > 方法 ReleaseKeepAlive 
ReleaseKeepAlive (释放)
Releases the power lock and allows the device to go to sleep.


库 Phone > 类 PhoneWakeState > 方法 ReleasePartialLock 
ReleasePartialLock (释放)
Releases a partial lock that was previously acquired by calling PartialLock.
  评论这张
 
阅读(28)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017