summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source/luascript/ref-devices.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/luascript/ref-devices.rst')
-rw-r--r--docs/source/luascript/ref-devices.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/source/luascript/ref-devices.rst b/docs/source/luascript/ref-devices.rst
index 17b34ef1914..1c3eabdbd2d 100644
--- a/docs/source/luascript/ref-devices.rst
+++ b/docs/source/luascript/ref-devices.rst
@@ -553,6 +553,12 @@ image:display()
Returns a “front panel display” string for the device, if supported. This
can be used to show status information, like the current head position or
motor state.
+image:add_media_change_notifier(callback)
+ Add a callback to receive notifications when a media image is loaded or
+ unloaded for the device. The callback is passed a single string argument
+ which will be ``"loaded"`` if a media image has been loaded or
+ ``"unloaded"`` if the previously loaded media image has been unloaded.
+ Returns a :ref:`notifier subscription <luascript-ref-notifiersub>`.
Properties
~~~~~~~~~~