DynamicPinPad

Voice-enabled numeric PIN pad for standalone on-screen entry (not inside a dialog)

import { DynamicPinPad } from "@roku-sdk/components";
DynamicPinPad(props: IDynamicPinPadProps): JSX.Element

Description

Voice-enabled numeric PIN pad for standalone on-screen entry (not inside a dialog).

Parameters

NameTypeDescription
propsIDynamicPinPadProps

Types

IDynamicPinPadProps

Properties for the DynamicPinPad component.

DynamicPinPad is similar to the legacy PinPad node but adds voice entry functionality. It enables text and voice entry of numeric characters and is typically used for short PIN codes. The key layout is fixed based on the node's pre-built Key Definition File.

This wrapper extends the native DynamicPinPad node via PinPadExt, forwarding text-edit-box styling fields to the internal VoiceTextEditBox.

Example

<DynamicPinPad
  id="pinpad"
  text={pin()}
  hintText="Enter PIN"
  maxTextLength={4}
  secureMode
  onText={setPin}
  translation={[80, 200]}
/>
NameTypeDescription
centerUnderscores?booleanCenters underscore placeholders within the text box.
disableVoiceUnderscoreControl?booleanDisables voice underscore control in the internal text edit box.
hintText?stringPlaceholder text shown when empty.
hintTextColor?stringColor of the hint text.
maxTextLength?numberMaximum number of characters that may be entered.
onText?EventHandler<string>Fired when the entered text changes.
secureMode?booleanWhen true, entered characters are masked.
showUnderscores?booleanShows underscore placeholders for each digit position.
text?stringCurrent PIN/text value.
textColor?stringColor of the entered text.

Extends IGroupProps.


What’s Next

Did this page help you?