top

RECOGNITION

This class checks the Recognition support. You should check whether the recognition is supported or not.

Add the following line for recognition class into a html file your own :

  script type="text/javascript" src="$MANAGER_WIDGET/Common/webapi/1.0/deviceapis.js">/script>

You can declare recognition class like this :

  ex) var recognition= deviceapis.recognition;


Methods

IsRecognitionSupported

Description
The IsRecognitionSupported function checks whether the recognition is supported or not.
Parameters
none
Return■Number
  - 1 : supported
    0 : not supported
Emulator SupportY
SDK ConstraintNone
Example
if(deviceapis.recognition.IsRecognitionSupported())
{
    deviceapis.recognition.SubscribeExEvent(deviceapis.recognition.PL_RECOGNITION_TYPE_VOICE, 'smartTV', rCallback);
}