您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

21 行
707 B

package com.unity.uiwidgets.plugin;
import android.view.View;
import android.view.WindowManager;
import com.unity3d.player.UnityPlayer;
public class Utils {
public static final String TAG = "UIWidgets";
public static void SetStatusBarState(final boolean show) {
UnityPlayer.currentActivity.runOnUiThread(new Runnable() {
public void run() {
if (show) {
UnityPlayer.currentActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
} else {
UnityPlayer.currentActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
}
});
}
}