Difference between revisions of "AlertDialog.new"

From GiderosMobile
m
m (Text replacement - "</source" to "</syntaxhighlight")
Line 8: Line 8:
 
<source lang="lua">
 
<source lang="lua">
 
AlertDialog.new(title,message,cancelButton,button1,button2)
 
AlertDialog.new(title,message,cancelButton,button1,button2)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Revision as of 16:54, 12 July 2023

Available since: Gideros 2012.8
Class: AlertDialog

Description

Creates a new AlertDialog object.

<source lang="lua"> AlertDialog.new(title,message,cancelButton,button1,button2) </syntaxhighlight>

Parameters

title: (string) The string that appears in the receiver's title bar. Can be empty string.
message: (string) Descriptive text that provides more details than the title. Can be empty string.
cancelButton: (string) The text of the cancel button.
button1: (string) The text of the 1st optional button. optional
button2: (string) The text of the 2st optional button. optional