Login to follow
Native Dialogs Plugin

Native Dialogs Plugin (ODC)

Stable version 1.1.2 (Compatible with ODC)
Uploaded on 10 Mar (2 weeks ago) by Product League
Native Dialogs Plugin

Native Dialogs Plugin (ODC)

Documentation
1.1.2

Using this plugin is as easy as using any other mobile plugin you'll find.


Pre-condition: have this plugin instaled ;-)


Usage:

Just make sure that you first use the CheckDialogsPlugin first before using the Dialog Client action.


The Native Dialogs Plugin has available four different client actions:

  • Alert
  • Confirm
  • Prompt
  • Beep


Alert

Shows a native alert.

  • Input Parameters

Message: The message you want to display in the dialog

Title: Title of the Dialog

ButtonName: What the users will see as the button text


  • Output parameters

Success: True when no error occured during the process

ErrorMessage: Empty when no error occured, otherwise it will contain the error message



Confirm

Shows a confirmation native dialog.

  • Input Parameters

Message: The message you want to display in the confirm dialog

Title: Title of the Confirm Dialog

ConfirmButtonName: What the users will see as the confirmation button text

DismissButtonName: What the users will see as the dismiss button text


  • Output parameters

IsConfirmButtonClicked: True when the confirm button is clicked. False if dismiss button is clicked

ErrorMessage: Empty when no error occured, otherwise it will contain the error message



Prompt

Makes the device display a native dialog box with a prompt.

  • Input Parameters

Message: The message you want to display in the confirm dialog

Title: Title of the Confirm Dialog

Button1Name: What the users will see as the first button text

Button2Name: What the users will see as the second button text

DefaultInputValue: What the users will see as the default textbox input value (optional)


  • Output parameters

Success: True when no error occured during the process

ErrorMessage: Empty when no error occured, otherwise it will contain the error message

TextEntered: What the users entered in the textbox input



Beep

Makes the device play a beep sound.

  • Input Parameters

NumberOfBeeps: The number of times to repeat the beep


  • Output parameters

Success: True when no error occured during the process

ErrorMessage: Empty when no error occured, otherwise it will contain the error message



Note

Please be aware that when you test this in the browser (emulated) that this plugin won't work. So please use the FeedbackMessage that the platform already provides.