Skip to main content

TextInputSystem.KeyboardType

Enum

The different input style of keyboard input.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v165

Index

Example

var options = new TextInputSystem.KeyboardOptions();
options.keyboardType = TextInputSystem.KeyboardType.Text;

script.createEvent("TapEvent").bind(function(){
global.textInputSystem.requestKeyboard(options);
})

Enumeration Members

Email

Email: number

SPECS only

A keyboard type for entering emails.

Since

Lens Scripting Version 165


Num

Num: number

A keyboard type for entering digits

Since

Lens Scripting Version 165


Password

Password: number

SPECS only

A keyboard type for entering passwords.

Since

Lens Scripting Version 165


Phone

Phone: number

A keyboard type for entering phone numbers

Since

Lens Scripting Version 165


Pin

Pin: number

SPECS only

Since

Lens Scripting Version 165


Text

Text: number

A keyboard type for entering normal text

Since

Lens Scripting Version 165


Url

Url: number

A keyboard type for entering URLs

Since

Lens Scripting Version 165