Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Latest commit

 

History

History
107 lines (54 loc) · 3.76 KB

notifier.md

File metadata and controls

107 lines (54 loc) · 3.76 KB

Notifier

The Notifier component displays alert dialogs, messages, and temporary alerts, and creates Android log entries.

Methods

ShowMessageDialog

Displays a message which the user must dismiss by pressing a button.

ShowChooseDialog

Displays a message two buttons to let the user choose one of two responses, for example, yes or no, after which the AfterChoosing event is raised.

ShowTextDialog

Lets the user enter text in response to the message, after which the AfterTextInput event is raised.

ShowAlert

Displays a temporary alert that goes away by itself after a short time.

ShowProgressDialog

Displays an alert with a loading spinner that cannot be dismissed by the user. It can only be dismissed by using the DismissProgressDialog block.

DismissProgressDialog

Dismisses the progress dialog displayed by ShowProgressDialog.

LogError

Logs an error message to the Android log.

LogInfo

Logs an info message to the Android log.

LogWarning

Logs a warning message to the Android log.

The messages in the dialogs (but not the alert) can be formatted using the following HTML tags: <b>, <big>, <blockquote>, <br>, <cite>, <dfn>, <div>, <em>, <small>, <strong>, <sub>, <sup>, <tt>, <u>
You can also use the font tag to specify color, for example, <font color="blue">. Some of the available color names are aqua, black, blue, fuchsia, green, grey, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow

Properties

BackgroundColor

Specifies the background color for alerts (not dialogs).

NotifierLength (designer only)

specifies the length of time that the alert is shown -- either "short" or "long".

TextColor

Specifies the text color for alerts (not dialogs).

Events

AfterChoosing(text choice)

Event after the user has made a selection for ShowChooseDialog.

AfterTextInput(text response)

Event raised after the user has responded to ShowTextDialog.

Methods

DismissProgressDialog()

Dismiss a previously displayed ProgressDialog box

LogError(text message)

Writes an error message to the Android system log. See the Google Android documentation for how to access the log.

LogInfo(text message)

Writes an information message to the Android log.

LogWarning(text message)

Writes a warning message to the Android log. See the Google Android documentation for how to access the log.

ShowAlert(text notice)

Display a temporary notification

ShowChooseDialog(text message, text title, text button1Text, text button2Text, boolean cancelable)

Shows a dialog box with two buttons, from which the user can choose. If cancelable is true there will be an additional CANCEL button. Pressing a button will raise the AfterChoosing event. The "choice" parameter to AfterChoosing will be the text on the button that was pressed, or "Cancel" if the CANCEL button was pressed.

ShowMessageDialog(text message, text title, text buttonText)

Display an alert dialog with a single button that dismisses the alert.

ShowProgressDialog(text message, text title)

Shows a dialog box with an optional title and message (use empty strings if they are not wanted). This dialog box contains a spinning artifact to indicate that the program is working. It cannot be canceled by the user but must be dismissed by the Makeroid Program by using the DismissProgressDialog block.

ShowTextDialog(text message, text title, boolean cancelable)

Shows a dialog box where the user can enter text, after which the AfterTextInput event will be raised. If cancelable is true there will be an additional CANCEL button. Entering text will raise the AfterTextInput event. The "response" parameter to AfterTextInput will be the text that was entered, or "Cancel" if the CANCEL button was pressed.