Skip to content
Enact

webos/signLang

Provide utility functions and higher order component for sign language.

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

Time to wait (in milliseconds) before calling Sign Language API.

Default: 0
Properties added to wrapped component

Unique ID for sign language.


Additional option for sign language.

startSignLang( signLangId, option )  undefined

Activates sign language based on the singLangID.

2 Params
signLangIdString
 default: ''

signLangId Unique ID used for sign language.

optionObject
 default: {}

Additional option for sign language.

Returns
undefined
stopSignLang( signLangId, option )  undefined

Deactivates sign language based on the signLangID.

2 Params
signLangIdString
 default: ''

signLangId Unique ID used for sign language.

optionObject
 default: {}

Additional option for sign language.

Returns
undefined