[m1-p-1.1.0] add status of cover
This commit is contained in:
@@ -43,6 +43,19 @@ public interface IMogoStatusManager extends IProvider {
|
||||
*/
|
||||
boolean isSocketOnLine();
|
||||
|
||||
/**
|
||||
* 压屏是否消失
|
||||
* @return
|
||||
*/
|
||||
boolean isScreenCoverDismiss();
|
||||
|
||||
/**
|
||||
* 设置压屏 状态
|
||||
* @param tag 业务类型
|
||||
* @param mode true:消失,false:存在
|
||||
*/
|
||||
void setScreenCoverMode(String tag, boolean mode);
|
||||
|
||||
/**
|
||||
* 设置云端 socket 状态
|
||||
* @param tag 业务类型
|
||||
|
||||
@@ -20,6 +20,7 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
private static final byte[] obj = new byte[0];
|
||||
|
||||
private MogoStatusManager() {
|
||||
|
||||
}
|
||||
|
||||
public static MogoStatusManager getInstance() {
|
||||
@@ -73,6 +74,16 @@ public class MogoStatusManager implements IMogoStatusManager {
|
||||
return get_bool_val(StatusDescriptor.CLOUD_SOCKET);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isScreenCoverDismiss() {
|
||||
return get_bool_val(StatusDescriptor.SCREEN_COVER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setScreenCoverMode(String tag, boolean mode) {
|
||||
doSetStatus(tag, StatusDescriptor.SCREEN_COVER, mode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCloudSocketMode(String tag, boolean mode) {
|
||||
doSetStatus(tag, StatusDescriptor.CLOUD_SOCKET, mode);
|
||||
|
||||
@@ -41,6 +41,11 @@ public enum StatusDescriptor {
|
||||
/**
|
||||
* 云 Socket状态
|
||||
*/
|
||||
CLOUD_SOCKET
|
||||
CLOUD_SOCKET,
|
||||
|
||||
/**
|
||||
* 压屏状态
|
||||
*/
|
||||
SCREEN_COVER
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user