Platforms to show: All Mac Windows Linux Cross-Platform

Back to MediaKeysMBS class.

MediaKeysMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Media Keys MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Initializes the key watcher.

MediaKeysMBS.startWatchingMediaKeys

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Media Keys MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Starts watching for keys.
Example
dim m as MediaKeysMBS // global property!

// app initialization
m = new MediaKeysMBS

m.Keys(MediaKeysMBS.kMediaKeyEject) = MediaKeysMBS.kModeEventAndBlock
m.startWatchingMediaKeys

Some examples using this method:

MediaKeysMBS.stopWatchingMediaKeys

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Media Keys MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Stops watching for keys.
Example
dim m as MediaKeysMBS // global property

// when closing media window
m.stopWatchingMediaKeys

The destructor calls this for cleanup.

Some examples using this method:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...