Back

CreateNotification

Returns a Notification object.

For more information in the detailed docs see CreateNotification

  ntf = app.CreateNotification( options ) → app object - Notification

Example -




function OnStart()
{
    app.ShowPopup("Sending notification");
    notify = app.CreateNotification();
    notify.SetMessage("Ticker","Title","Text");
    notify.Notify("testID");
    setTimeout(cancel,5000);
}

function cancel()
{
    notify.Cancel("testID");
    app.ShowPopup("Notification cancelled");
}
    Copy     Copy All       Run      

The following methods are available on the Notification object:

  Cancel( id )
  GetType() → string: "Notification"
  Method( name, types, p1, p2, p3, p4 )
  Notify( id )

unknown
number: integer
cancel Cancel with notification id match
Returns the control class name.
string
string: comma separated: "boolean", "char", "byte", "short", "int", "long", "float", "double"
Allows access to other functions defined on the object in Java via reflection.
Notify user
string: path to file or folder ( "/absolute/..." or "relative/..." )
use large image on notification area
string:
  hexadecimal: "#rrggbb", "#aarrggbb"
  colourName: "red", "green", ...
number: milliseconds
activate device notification LEDs
set notification text
SetSmallImage