chrome.virtualKeyboard
- Description
The
chrome.virtualKeyboard
API is a kiosk only API used to configure virtual keyboard layout and behavior in kiosk sessions. - Permissions
virtualKeyboard
- AvailabilityChrome 58+ ChromeOS only
Summary
- Types
- Methods
Types
FeatureRestrictions
Properties
- autoCompleteEnabled
boolean optional
Whether virtual keyboards can provide auto-complete.
- autoCorrectEnabled
boolean optional
Whether virtual keyboards can provide auto-correct.
- handwritingEnabled
boolean optional
Whether virtual keyboards can provide input via handwriting recognition.
- spellCheckEnabled
boolean optional
Whether virtual keyboards can provide spell-check.
- voiceInputEnabled
boolean optional
Whether virtual keyboards can provide voice input.
Methods
restrictFeatures
chrome.virtualKeyboard.restrictFeatures(
restrictions: FeatureRestrictions,
callback?: function,
)
Sets restrictions on features provided by the virtual keyboard.
Parameters
- restrictions
the preferences to enabled/disabled virtual keyboard features.
- callback
function optional
The
callback
parameter looks like:(update: FeatureRestrictions) => void
- updateChrome 63+
Returns
Promise<FeatureRestrictions>
PendingThis only returns a
Promise
when thecallback
parameter is not specified, and with MV3+. The type inside thePromise
is the same as the 1st argument tocallback
.