INNER CODE UNIT · JavaScript

_orientation

SuperMonster003/Ant-Forest · ant-forest-launcher.js:540

                                                function _orientation() {
                                                    if ($$disp.is_rotation_landscape) {
                                                        if ($$flag.show_energy_result && $$flag.show_floaty_result) {
                                                            consolex.$([
                                                                '当前设备屏幕为水平显示方向',
                                                                '悬浮窗结果展示方式已被禁用',
                                                            ], 3, 0, 0, -2);
                                                            $$flag.show_floaty_result = false;
                                                        }
                                                        consolex._('重新获取当前设备屏幕显示信息');
                                                        $$disp.refresh();
                                                    }
                                                    return $$disp.is_rotation_portrait;
                                                }

                                                function _optional() {
                                                    if (!$$bool($$flag.launch_optional)) {
                                                        consolex._('等待启动可选条件');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…