Description
The chrome.virtualKeyboard API is a kiosk only API used to configure virtual keyboard layout and behavior in kiosk sessions.
Permissions
virtualKeyboardAvailability
Types
FeatureRestrictions
Properties
- 
    autoCompleteEnabledboolean optional Whether virtual keyboards can provide auto-complete. 
- 
    autoCorrectEnabledboolean optional Whether virtual keyboards can provide auto-correct. 
- 
    handwritingEnabledboolean optional Whether virtual keyboards can provide input via handwriting recognition. 
- 
    spellCheckEnabledboolean optional Whether virtual keyboards can provide spell-check. 
- 
    voiceInputEnabledboolean optional Whether virtual keyboards can provide voice input. 
Methods
restrictFeatures()
chrome.virtualKeyboard.restrictFeatures(
restrictions: FeatureRestrictions,
callback?: function,
): Promise<FeatureRestrictions>
Sets restrictions on features provided by the virtual keyboard.
Parameters
- 
    restrictionsthe preferences to enabled/disabled virtual keyboard features. 
- 
    callbackfunction optional The callbackparameter looks like:(update: FeatureRestrictions) => void - 
    updateChrome 63+
 
- 
    
Returns
- 
            Promise<FeatureRestrictions> Chrome 96+Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.