Module ctr.news
The news module.
Usage:
local news = require("ctr.news")
-
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.