react/features/facial-recognition/actionTypes.js (4 lines of code) (raw):
// @flow
/**
* Redux action type dispatched in order to add a facial expression.
*
* {
* type: ADD_FACIAL_EXPRESSION,
* facialExpression: string,
* duration: number
* }
*/
export const ADD_FACIAL_EXPRESSION = 'ADD_FACIAL_EXPRESSION';
/**
* Redux action type dispatched in order to set the time interval in which
* the message to the facial expression worker will be sent.
*
* {
* type: SET_DETECTION_TIME_INTERVAL,
* time: number
* }
*/
export const SET_DETECTION_TIME_INTERVAL = 'SET_DETECTION_TIME_INTERVAL';
/**
* Redux action type dispatched in order to set recognition active in the state.
*
* {
* type: START_FACIAL_RECOGNITION
* }
*/
export const START_FACIAL_RECOGNITION = 'START_FACIAL_RECOGNITION';
/**
* Redux action type dispatched in order to set recognition inactive in the state.
*
* {
* type: STOP_FACIAL_RECOGNITION
* }
*/
export const STOP_FACIAL_RECOGNITION = 'STOP_FACIAL_RECOGNITION';