MCPcopy Create free account
hub / github.com/agateau/pixelwheels / init

Method init

core/src/com/agateau/utils/PlatformUtils.java:71–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 private static void init() {
72 if (sUiType != null) {
73 return;
74 }
75 String envValue = System.getenv("AGC_UI_TYPE");
76 if (envValue == null) {
77 sUiType = isDesktop() ? UiType.BUTTONS : UiType.TOUCH;
78 } else {
79 sUiType = UiType.valueOf(envValue);
80 NLog.d("Forcing UI type to %s", sUiType);
81 }
82 NLog.i("UI type: %s", sUiType);
83 }
84}

Callers 1

isTouchUiMethod · 0.95

Calls 3

isDesktopMethod · 0.95
dMethod · 0.95
iMethod · 0.95

Tested by

no test coverage detected