webos/signLang
Provide utility functions and higher order component for sign language.
Members
Section titled “Members ”SignLangDecorator Higher-Order Component
Section titled “SignLangDecorator   Higher-Order Component ”Usage:
import Button from '@enact/sandstone/Button';
import {SignLangDecorator} from '@enact/webos/signLang';
import {Component} from 'react';
const SignLangButton = SignLangDecorator(Button);
class Sample extends Component {
render () {
return(
<div>
<SignLangButton signLangId="settings_audioguide_1">Hello</SignLangButton>
</div>
);
}
}SignLangDecorator is a higher order component that adds feature for sign language to its wrapped component.
Configuration
signLangDelay
Section titled “signLangDelay”Time to wait (in milliseconds) before calling Sign Language API.
Default: 0Properties added to wrapped component
signLangId
Section titled “signLangId”Unique ID for sign language.
signLangOption
Section titled “signLangOption”Additional option for sign language.
startSignLang Function
Section titled “startSignLang   Function ”startSignLang( signLangId, option ) → undefinedActivates sign language based on the singLangID.
2 Params
- signLangId Stringdefault: ''
signLangId Unique ID used for sign language.
- option Objectdefault: {}
Additional option for sign language.
Returns
- undefined
stopSignLang Function
Section titled “stopSignLang   Function ”stopSignLang( signLangId, option ) → undefinedDeactivates sign language based on the signLangID.
2 Params
- signLangId Stringdefault: ''
signLangId Unique ID used for sign language.
- option Objectdefault: {}
Additional option for sign language.
Returns
- undefined