Documentation
  • Introduction
  • Components
    • User Interface
      • Button
      • Checkbox
      • Date Picker
      • Floating Button
      • Image
      • Label
      • List Picker
      • List View
      • List View Image and Text
      • Notifier
      • Radio Button
      • Rating Bar
      • Slider
      • Surface View
      • Spinner
      • Switch
      • TextBox
      • Time Picker
      • Web Viewer
    • Layout
      • Horizontal Arrangement
      • Horizontal Scroll Arrangement
      • Space
      • Table Arrangement
      • Vertical Arrangement
      • Vertical Scroll Arrangement
    • Media
      • Audio Picker
      • Camcorder
      • Camera
      • Image Picker
      • Metadata
      • OCR
      • Player
      • QR Code
      • Sound
      • Sound Recorder
      • Speech Recognizer
      • Text To Speech
      • Video Player
      • Yandex Translate
    • Drawing and Animation
      • Ball
      • Canvas
      • Image Editor
      • Image Sprite
    • Sensors
      • Accelerometer
      • Barcode Scanner
      • Clock
      • Finger Print
      • Gravity Sensor
      • Gyroscope Sensor
      • Light Sensor
      • Location Sensor
      • Magnetic Field Sensor
      • NearField
      • Orientation Sensor
      • Pedometer
      • Pressure Sensor
      • Proximity Sensor
      • Sound Sensor
      • Temperature Sensor
    • Social
      • Contact Picker
      • Email Picker
      • Google Account Picker
      • Phone Call
      • Phone Number Picker
      • Sharing
      • Texting
      • Twitter
    • Storage
      • File
      • Firebase DB
      • Fusiontables Control
      • SQLite
      • Tiny DB
      • Tiny Web DB
    • Connectivity
      • Activity Starter
      • Bluetooth Admin
      • Bluetooth Client
      • Bluetooth Server
      • Download
      • Network
      • Web
      • WiFi
    • Google
      • Google Account Picker
      • Google Maps
      • Google Shortlink
    • LEGO Mindstorms
      • NXT Drive
      • NXT Color Sensor
      • NXT Light Sensor
      • NXT Sound Sensor
      • NXT Touch Sensor
      • NXT Ultrasonic Sensor
      • NXT Direct Commands
      • EV3 Motors
      • EV3 Color Sensor
      • EV3 Gyro Sensor
      • EV3 Touch Sensor
      • EV3 Ultrasonic Sensor
      • EV3 Sound
      • EV3 UI
      • EV3 Commands
    • Monetization
      • AdMob Interstitial
      • AdMob Banner
      • AdMob Rewarded Video
      • Billing
      • Leadbolt
    • Device
      • Audio
      • Device Tools
      • Wallpaper
      • Package
      • Screenshot
    • Experimental
      • Push Notifications
      • Cloud DB
      • Notification
  • Blocks
    • Control
    • Logic
    • Math
    • Text
    • Lists
    • Colors
    • Variables
    • Procedures
    • Screen
    • Any Component
  • Testing
    • Live Development
      • Via WiFi
      • Via USB
    • Makeroid Companion
  • Extensions
    • List of Extensions
    • Creating Extensions
  • Other
    • Backpack
    • Release Notes
      • Andromeda
      • Beta Versions
    • Resources
      • Concept Cards
    • Terms of Service
Powered by GitBook
On this page
  • Methods
  • ShowMessageDialog
  • ShowChooseDialog
  • ShowTextDialog
  • ShowAlert
  • ShowProgressDialog
  • DismissProgressDialog
  • LogError
  • LogInfo
  • LogWarning
  • Properties
  • BackgroundColor
  • NotifierLength (designer only)
  • TextColor
  • Events
  • AfterChoosing(text choice)
  • AfterTextInput(text response)
  • Methods
  • DismissProgressDialog()
  • LogError(text message)
  • LogInfo(text message)
  • LogWarning(text message)
  • ShowAlert(text notice)
  • ShowChooseDialog(text message, text title, text button1Text, text button2Text, boolean cancelable)
  • ShowMessageDialog(text message, text title, text buttonText)
  • ShowProgressDialog(text message, text title)
  • ShowTextDialog(text message, text title, boolean cancelable)
  1. Components
  2. User Interface

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.

PreviousList View Image and TextNextRadio Button

Last updated 7 years ago