Lines Matching refs:g_motionInterface
164 1. 通过调用IMotionInterface::Get()获取到手势识别实例,并赋给IMotionInterface类型的智能指针对象g_motionInterface。
166 2. 通过g_motionInterface实例调用Register接口注册回调,回调函数需要根据自己的需求来设计。
168 3. 通过g_motionInterface实例调用EnableMotion接口使能Motion类型,当前支持拿起(HDF_MOTION_TYPE_PICKUP)、翻转(HDF_MOTION_TYP…
170 4. 通过g_motionInterface实例调用DisableMotion接口去使能手势识别类型。
172 5. 通过g_motionInterface实例调用Unregister取消订阅Motion数据回调函数。注意取消订阅必须先调用Register接口注册回调,否则Unregister会返回失败。
181 sptr<IMotionInterface> g_motionInterface = nullptr;
197 g_motionInterface = IMotionInterface::Get();
214 if (g_motionInterface == nullptr) {
215 ASSERT_NE(nullptr, g_motionInterface);
226 int32_t ret = g_motionInterface->Register(g_motionCallback);
231 ret = g_motionInterface->EnableMotion(vec[i]);
240 ret = g_motionInterface->DisableMotion(vec[i]);
250 ret = g_motionInterface->Unregister(g_motionCallback);