DaffyDialog

Published on March 28, 2022

🏷️ Tags: #extensions

A non-visible extension that provides additional tools to the built-in Notifier component.

Made with Niotron IDE at https://ide.niotron.com.

Current version: 5 Package name: com.gordonlu.daffydialog.aix

For more information, read this MIT App Inventor Community thread, here for the GitHub repo, here for the Android Builder post and here for the Niotron Community post.

πŸ“– Documentation

Event blocks

CustomChooseDialogCanceled - This event is fired when the user has pressed the cancel button in a custom choose dialog.

Parameters: id = number (int)

CustomMessageDialogClosed - This event is fired when the user has pressed the dismiss button in a custom message dialog.

Parameters: id = number (int)

GotCustomChooseDialog - This event is fired when the user has pressed button1 or button2 in the custom choose dialog.

Parameters: id = number (int), choice = text

GotNumberPickerDialog - This event is fired when the user has selected a number in a number picker dialog.

Parameters: id = number (int), number = number (int)

GotPasswordInputDialog - This event is fired when the user has entered their password in a password input dialog.

Parameters: id = number (int), password = text

GotTextInputDialog - This event is fired when the user has entered some text in a text input dialog.

Parameters: id = number (int), input = text

NumberPickerDialogCanceled - This event is fired when the user has canceled the number picker dialog.

Parameters: id = number (int)

ImageDialogClosed - This event is fired when the user has pressed the dismiss button in an image dialog.

Parameters: id = number (int)

PasswordInputDialogCanceled - This event is fired when the user has canceled the password input dialog.

Parameters: id = number (int)

TextInputDialogCanceled - This event is fired when the user has canceled the text input dialog.

Parameters: id = number (int)

Method blocks

CustomChooseDialog - Shows a custom choose dialog. The id parameter is an ID to specify the notifier, in case you want to show two dialogs with the same extension. The title and message parameter are for specifying the title and message of this dialog respectively. When the user has tapped button1 or button2 in this dialog, the extension fires the GotCustomChooseDialog event. If it is canceled, the extension will call the CustomChooseDialogCanceled event.

Parameters: id = number (int), message = text, title = text, iconPath = text, useIcon = boolean, button1Text = text, button2Text = text, cancelButtonText = text, cancelable = boolean

CustomMessageDialog - Displays a custom message dialog.

Parameters: id = number (int), title = text, message = text, iconPath = text, useIcon = boolean, buttonText = text

ShowImageDialog - Displays an image in a dialog. This requires an absolute path pointing to the image location. All supported file types are PNG, JPEG and JPG. After the user has pressed the button, the extension will fire the ImageDialogClosed event.

Parameters: id = number (int), title = text, message = text, imagePath = text, buttonText = text, iconPath = text, useIcon = boolean

ShowNumberPickerDialog - Displays a number picker dialog that enables the user to select a number from a predefined range.

Parameters: id = number (int), title = text, iconPath = text, useIcon = boolean, buttonText = text, cancelButtonText = text, message = text, minValue = number (int), maxValue = number (int), cancelable = boolean

ShowPasswordInputDialog - Shows a password input dialog. The id parameter is an ID to specify the notifier, in case you want to show two dialogs with the same extension. The title parameter is for specifying the title of this dialog. defaultText is the default text for the input in which the user will first see in the textbox when they open the dialog, and hint is the hint of that textbox. Use inputBold, inputItalic, hintColor and inputColor to customize the textbpx, and use the property blocks to specify inputFont. buttonText is the text of the OK button, while cancelButtonText is the text of the cancel button.

Parameters: id = number (int), title = text, message = text, defaultText = text, hint = text, inputBold = boolean, inputItalic = boolean, inputFont = text, hintColor = color, inputColor = color, buttonText = text, cancelButtonText = text, useIcon = boolean, cancelable = boolean

ShowTextInputDialog - Shows a text input dialog. The id parameter is an ID to specify the notifier, in case you want to show two dialogs with the same extension. The title parameter is for specifying the title of this dialog. defaultText is the default text for the input in which the user will first see in the textbox when they open the dialog, and hint is the hint of that textbox. Use inputBold, inputItalic, hintColor and inputColor to customize the textbpx, and use the property blocks to specify inputFont. buttonText is the text of the OK button, while cancelButtonText is the text of the cancel button.

For what to fill in in the inputType parameter, here are some examples. For more, read the Android Developers documentation. Do not use this for password. Instead, use the ShowPasswordInputDialog.

  • plain old normal text - 0.

  • number - 2.

  • phone number - 3.

  • date/time - 4.

  • email address - 32.

Parameters: id = number (int), title = text, message = text, defaultText = text, hint = text, inputBold = boolean, inputItalic = boolean, inputFont = text, hintColor = color, inputColor = color, buttonText = text, cancelButtonText = text, cancelable = boolean, inputType = number, iconPath = text, useIcon = boolean, cancelable = boolean

Property blocks

DefaultFont, Monospace, SansSerif, Serif (read-only, blocks-only) - Font blocks.

HtmlMessage (read, write, designer, blocks) - This property specifies whether HTML format should be enabled for the messages of all dialogs in this extension. Requires: boolean

TERMS AND CONDITIONS

By downloading or sharing my extension, you agree to follow these terms and conditions.

  1. Have fun using the extension!

  2. This, along with the MIT App Inventor original post, GitHub repo and Niotron/Android Builder/Appzard community post above, are the only authorized places to download this extension. As an organization, you are not allowed to host and advertize this extension on your website, document, tweet, blog, article or any software you made without my authorization. You are also reminded not to include a direct download link of this extension on your website without my permission. If you are interested in the actions listed above, please contact me via email. Do remember that if you violate term no. 2, AICODE has the right to flag your website, document, tweet, blog or article as a violation of copyright, or other legal actions will be taken. Please contact me if you find anyone do this.

However, you can copy the link of this webpage and share it to someone as a personal identity (not as an organization), or sharing it on these authorized forums: App Inventor, Kodular, Niotron, Appzard and Android Builder communities. The term organization includes schools, markets and app stores, companies and social groups. Thank you for your understanding.

Those organizations are authorized to advertize or host my extension:

  • Kodular admins

  • MIT App Inventor admins

  • Niotron admins

  • Pura Vida Apps / Taifun Baer

  1. Selling this extension/product to anyone is not allowed unless authorized by AICODE.

  2. The extension is made Open Source. You can modify the code, but you should give credit by providing a link to this site.

  3. These terms and conditions are written and issued on December 20, 2021. AICODE has the total permission to edit these terms and conditions anytime.