1# IMotionCallback 2 3 4## 概述 5 6定义上报手势识别数据回调函数。 7 8手势识别用户在订阅手势识别数据时需要注册这个回调函数,只有当使能手势识别后,手势识别数据用户才会收到手势识别数据。 详情可参考[IMotionInterface](interface_i_motion_interface.md)。 9 10**Since:** 113.2 12**相关模块:** 13 14[Motion](_motion.md) 15 16 17## 汇总 18 19 20### Public 成员函数 21 22 | 名称 | 描述 | 23| -------- | -------- | 24| [OnDataEvent](#ondataevent) ([in] struct [HdfMotionEvent](_hdf_motion_event.md) event) | 定义上报手势识别数据回调函数。 | 25 26 27## 成员函数说明 28 29 30### OnDataEvent() 31 32 33``` 34IMotionCallback::OnDataEvent ([in] struct HdfMotionEvent event) 35``` 36**描述:** 37定义上报手势识别数据回调函数。 38 39**参数:** 40 41 | 名称 | 描述 | 42| -------- | -------- | 43| event | 回调函数上报的数据。详见[HdfMotionEvent](_hdf_motion_event.md)。 | 44 45**返回:** 46 47如果回调函数上报数据成功,则返回0。 48 49如果回调函数上报数据失败,则返回负值。 50