Skip to content

PKUI.MESSAGE.Confirm.show

kerrishotts edited this page Nov 15, 2012 · 1 revision

(part of PKUI.MESSAGE) | (method of PKUI.MESSAGE.Confirm )

Return Type: void

Parameters: none

Displays a message box on the screen. If PKUI.CORE.useTransforms is true, and the platform is iOS, the message box will display onscreen with animation.

Example:

var mbox = new PKUI.MESSAGE.Confirm ( 
             "Confirmation",
             "Are you sure you want to delete the file?",
             "Delete*|Cancel<",
             function ( buttonIndex )
             {
               if (buttonIndex === 0) { deleteTheFile(); }
             }
);
mbox.show();

Notes

  • Once the message box is shown, it does not disappear until it is explicitly hidden, a button is tapped, or a physical back button event occurs (assuming the back button is intended to be caught).

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally