object.isSecure

Type Boolean
Object TextField
Library native.*
Revision Release 2024.3703
Keywords native text input

Overview

Controls whether text in the field is obscured. This is useful for passwords. Default is false.

Example

local passwordField = native.newTextField( 100, 50, 40, 30 )
passwordField.inputType = "number"
passwordField.isSecure = true