TextInputDialog:setSecureInput

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2012.8
Class: TextInputDialog

Description

Sets whether the text object should hide the text being entered.

TextInputDialog:setSecureInput(secureInput)

Parameters

secureInput: (boolean) if true, the text object hides the text being entered

Example

Mobiles and desktops

local textInputDialog = TextInputDialog.new("my title", "my message", "mysecretpw", "Cancel", "OK")
textInputDialog:setSecureInput(true)

local function onComplete(event)
	print(event.text, event.buttonIndex, event.buttonText)
end

textInputDialog:addEventListener(Event.COMPLETE, onComplete)
textInputDialog:show()