The wizard is supposed to simplify a configuration progress which requires several inputs and decisions by the user.
These can be settings and usage terms on first startup or an installation process as you might know from desktop applications.

wiz = app.CreateWizard( title, width=-1, height=-1, callback?, options? ) → app object: Wizard

The callback function will be called each time the user changes the wizard page.
The functions gets the current wizard layout and the page index (starting from 1) to identify the current progress.

Note: This function is a premium feature. Please consider subscribing to Premium to use this feature and support DroidScript in its further development.

Page Initialisation

On the very first call the page index is 0 which means 'initialisation'.
Then you have to create and add all wizard pages to the passed (frame) layout.

In case the user cancels the wizard the index is -1.

Example - Demo click to expand contents 

Properties

The following properties are available on the Wizard object:

dataObject: { key, value }

Methods

The following methods are available on the Wizard object:

Finish()
GetButtons() → List: of objects: [ btnCancel, btnPrev, btnNext ]
GetDialog() → app object: Dialog
GetLayout() → app object: Layout
GetType() → String: “Wizard”
Hide()
IsVisible() → Boolean
Show()