@snap/camera-kit
Version:
Camera Kit Web
47 lines (24 loc) • 793 B
Markdown
[**CameraKit Web SDK v1.13.0**](../README.md)
***
[CameraKit Web SDK](../globals.md) / KeyboardActiveEvent
Interface: KeyboardActiveEvent
"active" event payload.
This event is emitted when a lens requests a keyboard to be shown or dismissed.
The application should listen for this event and display or remove its keyboard UI accordingly.
# Properties
## active
**active**: `boolean`
Indicates whether the keyboard should be displayed (`true`) or hidden (`false`).
***
## text
**text**: `string`
The current text input associated with the keyboard.
***
## lens
**lens**: [`Lens`](Lens.md)
The lens that initiated the keyboard request.
***
## ~~element~~
**element**: `HTMLTextAreaElement`
### Deprecated
Clients apps are responsible to create keyboard UI.