Skip to content

localnotification getalert

Matthias Görges edited this page Oct 16, 2016 · 1 revision

#(localnotification-getalert) localnotification-getalert retrieves the text of the last local notification that fired.

Example

Example 1: A button callback that updates a text string if a new alert fired in the meantime

(define (get-alert g w t x y)
  (let ((str (localnotification-getalert)))
    (glgui-widget-set! gui textout 'label (if str str "NO MSG")))
)
Clone this wiki locally