Device Module (device)
- Reset auto-lock countdown (device.reset_idle)
- Lock screen (device.lock_screen)
- Unlock screen (device.unlock_screen)
- Get screen lock state (device.is_screen_locked)
- Get front app orientation (device.front_orien)
- Lock device screen rotation (device.lock_orien)
- Unlock rotation lock (device.unlock_orien)
- Get rotation lock state (device.is_orien_locked)
- Vibrate device (device.vibrator)
- Play sound in background (device.play_sound)
- Get device type (device.type)
- Get device name (device.name)
- Set device name (device.set_name)
- Get device UDID (device.udid)
- Get device serial number (device.serial_number)
- Get device Wi‑Fi MAC address (device.wifi_mac)
- Get current Wi‑Fi info (device.wifi_info)
- Get all interface IPs (device.ifaddrs)
- Get current battery level (device.battery_level)
- Get current charging state (device.battery_state)
- Turn on Wi‑Fi (device.turn_on_wifi)
- Turn off Wi‑Fi (device.turn_off_wifi)
- Turn on cellular data (device.turn_on_data)
- Turn off cellular data (device.turn_off_data)
- Turn on Bluetooth (device.turn_on_bluetooth)
- Turn off Bluetooth (device.turn_off_bluetooth)
- Turn on Airplane Mode (device.turn_on_airplane)
- Turn off Airplane Mode (device.turn_off_airplane)
- Connect to the selected VPN (device.turn_on_vpn)
- Disconnect VPN (device.turn_off_vpn)
- Check if VPN is on (device.is_vpn_on)
- Turn on flashlight (device.flash_on)
- Turn off flashlight (device.flash_off)
- Enable Reduce Motion (device.reduce_motion_on)
- Disable Reduce Motion (device.reduce_motion_off)
- Turn on AssistiveTouch (device.assistive_touch_on)
- Turn off AssistiveTouch (device.assistive_touch_off)
- Get backlight brightness (device.brightness)
- Set backlight brightness (device.set_brightness)
- Set auto-lock time (device.set_autolock_time)
- Set device volume (device.set_volume)
- ! Join a Wi‑Fi network (device.join_wifi)