Prevent the screen from turning off while the Mini App is running.
Control whether the device screen stays on while the Mini App is active. Only affects the current Mini App instance — screen behavior returns to normal when the user exits.
// Keep screen on (e.g. during a QR code display or navigation view)my.setKeepScreenOn({ keepScreenOn: true, success: () => { console.log('Screen will stay on'); }});// Restore default behaviormy.setKeepScreenOn({ keepScreenOn: false,});