summaryrefslogtreecommitdiff
path: root/src/lua/stubs/alerts.lua
blob: 9b541d844de8fa069bc730503e3faa93cd2eea7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- Module for interacting with playback volume. The Bluetooth and wired outputs store their current volume separately; this API only allows interacting with the volume of the currently used output device.
-- @module alerts

local alerts = {}

--- Returns the current volume as a percentage of the current volume limit.
-- @tparam function constructor Called to create the UI for the alert. A new default root object and group will be set before calling this function.i Alerts are non-interactable; the group created for the constructor will not be granted focus.
function alerts.show(constructor) end

--- Dismisses any visible alerts, removing them from the screen.
function alerts.hide() end

return alerts