Device API
Handles TV-related operations, such as rebooting, shutting down, and resetting to factory conditions.
device.currentApp
Signatures
currentApp()
Description
Queries the device for the app currently running on it.
Returns a Lua-friendly map with app_id, app_version, and app_name
fields. app_version and app_name may be nil if the protocol can't
cheaply report them.
local info = device.currentApp() print(info.app_id, info.app_version, info.app_name)