Home: https://github.com/asmagill/mjolnir_asm._asm
Apple's built-in notifications system.
This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis.
mjolnir._asm.notify.register(tag, fn) -> id
Registers a function to be called when an Apple notification with the given tag is clicked.
mjolnir._asm.notify.registry[]
This table contains the list of registered tags and their functions. It should not be modified directly, but instead by the mjolnir._asm.notify.register(tag, fn) and mjolnir._asm.notify.unregister(id) functions.
mjolnir._asm.notify.show(title, subtitle, text, tag)
Show an Apple notification. Tag is a unique string that identifies this notification; any functions registered for the given tag will be called if the notification is clicked. None of the strings are optional, though they may each be blank.
mjolnir._asm.notify.unregister(id)
Unregisters a function to no longer be called when an Apple notification with the given tag is clicked.
mjolnir._asm.notify.unregisterall()
Unregisters all functions registered for notification-clicks; called automatically when user config reloads.
mjolnir._asm.notify.withdraw_all()
Withdraw all posted notifications. This is called automatically during a reload to prevent crashes upon user activation of a notification, so you should seldom need to use this directly.