const char* DEVICE_CAPABILITIES_VISION_FACE_RECOGNITION = "visionFaceRecognition";
const char* DEVICE_CAPABILITIES_SECURE_ELEMENT = "secureElement";
const char* DEVICE_CAPABILITIES_NATIVE_OSP_COMPATIBLE = "nativeOspCompatible";
-const char* DEVICE_CAPABILITIES_INPUT_KEY_BACK = "inputKeyBack";
-const char* DEVICE_CAPABILITIES_INPUT_KEY_OPTION = "inputKeyMenu";
const char* DEVICE_CAPABILITIES_PROFILE = "profile";
}
{ DEVICE_CAPABILITIES_VISION_FACE_RECOGNITION, getProperty, NULL, kJSPropertyAttributeReadOnly },
{ DEVICE_CAPABILITIES_SECURE_ELEMENT, getProperty, NULL, kJSPropertyAttributeReadOnly },
{ DEVICE_CAPABILITIES_NATIVE_OSP_COMPATIBLE, getProperty, NULL, kJSPropertyAttributeReadOnly },
- { DEVICE_CAPABILITIES_INPUT_KEY_BACK, getProperty, NULL, kJSPropertyAttributeReadOnly },
- { DEVICE_CAPABILITIES_INPUT_KEY_OPTION, getProperty, NULL, kJSPropertyAttributeReadOnly },
{ DEVICE_CAPABILITIES_PROFILE, getProperty, NULL, kJSPropertyAttributeReadOnly },
{ 0, 0, 0, 0 }
};
deviceCapabilitiesInfo->nativeOspCompatible = getRegistry("platform.native.osp_compatible");
LoggerD("nativeOspCompatible : " << deviceCapabilitiesInfo->nativeOspCompatible);
return convert.toJSValueRef(deviceCapabilitiesInfo->nativeOspCompatible);
- } else if (JSStringIsEqualToUTF8CString(propertyName, DEVICE_CAPABILITIES_INPUT_KEY_BACK)) {
- bool inputKeyBack = false;
- if(system_info_get_platform_bool("tizen.org/feature/input.keys.back", &inputKeyBack) == SYSTEM_INFO_ERROR_NONE) {
- deviceCapabilitiesInfo->inputKeyBack = inputKeyBack;
- } else {
- return JSValueMakeUndefined(context);
- }
- return convert.toJSValueRef(deviceCapabilitiesInfo->inputKeyBack);
- } else if (JSStringIsEqualToUTF8CString(propertyName, DEVICE_CAPABILITIES_INPUT_KEY_OPTION)) {
- bool inputKeyMenu = false;
- if(system_info_get_platform_bool("tizen.org/feature/input.keys.menu", &inputKeyMenu) == SYSTEM_INFO_ERROR_NONE) {
- deviceCapabilitiesInfo->inputKeyMenu = inputKeyMenu;
- } else {
- return JSValueMakeUndefined(context);
- }
- return convert.toJSValueRef(deviceCapabilitiesInfo->inputKeyMenu);
} else if (JSStringIsEqualToUTF8CString(propertyName, DEVICE_CAPABILITIES_PROFILE)) {
deviceCapabilitiesInfo->profile = DEVICE_PROFILE;
return convert.toJSValueRef(deviceCapabilitiesInfo->profile);