removing context name and replacing it with gesture
[platform/core/api/gesture.git] / client / GestureSensor.h
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #ifndef __GESTURE_SENSOR_H__
19 #define __GESTURE_SENSOR_H__
20
21 #include "gesture_main.h"
22
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27
28 bool setGesture(hand_gesture_type_e type);
29 void setPowerSave(bool ps);
30 void setCallback(hand_gesture_recognition_cb cb);
31 void setUserData(void* data);
32
33 bool start();
34 bool stop();
35
36 bool isSensorSupported(hand_gesture_type_e type);
37
38 hand_gesture_type_e __gestureType;
39 hand_gesture_recognition_cb __callback;
40 void *__userData;
41
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif /* __GESTURE_SENSOR_H__ */
48