π§Misc
AirplaneModeEnabled
---@return boolean
exports.yseries:AirplaneModeEnabled()StreamerModeEnabled
---@return boolean
exports.yseries:StreamerModeEnabled()UpdateStreamerMode
---@param enabled boolean on/off the phone's steamer mode
---@param updateUI boolean whether to send an update to the UI to update the settings
exports.yseries:UpdateStreamerMode(enabled, updateUI)ToggleFlashlight
---@param enabled boolean on/off the phone's flashlight
exports.yseries:ToggleFlashlight(enabled)GetFlashlightState
---@return boolean
exports.yseries:GetFlashlightState()SendAppMessage
---@param appId string -- Custom app key
---@param data { action: string, data: table } -- Data to send to the app
exports.yseries:SendAppMessage(appId, data)
--- Example
exports.yseries:SendAppMessage('app-id', { action = 'action-name', data = { foo= 'bar' } ToggleLandscape
-- Toggle current landscape state
exports['yseries']:ToggleLandscape()
-- Set to landscape mode explicitly
exports['yseries']:ToggleLandscape(true)
-- Set to portrait mode explicitly
exports['yseries']:ToggleLandscape(false)IsAppInstalled
Check if an app is installed on the current phone. You can refer to config/config.json for the app keys.
---@param appKey string The app key to check (e.g., 'darkchat', 'banking')
---@return boolean True if the app is installed, false otherwise
exports.yseries:IsAppInstalled(appKey)
-- Example
local isDarkChatInstalled = exports.yseries:IsAppInstalled('darkchat')
if isDarkChatInstalled then
print('DarkChat is installed on this phone')
endLast updated