Module ctr.news

The news module.

Usage:

    local news = require("ctr.news")

Functions

init () Initialize the news module.
notification (title[, message=nil[, imageData=nil[, jpeg=false]]]) Send a notification to the user.
shutdown () Disable the news module.


Functions

init ()
Initialize the news module.
notification (title[, message=nil[, imageData=nil[, jpeg=false]]])
Send a notification to the user. Should work now.

Parameters:

  • title string title of the notification
  • message string message of the notification, or nil for no message (default nil)
  • imageData string data from a JPEG image (content of a file) or raw data, or nil for no image (default nil)
  • jpeg boolean set to true if the data is from a JPEG file (default false)
shutdown ()
Disable the news module.
generated by LDoc 1.4.3 Last updated 2017-06-05 14:35:27