Reputation: 1368
I'm trying to build Tizen wearable native app with Kiosk mode. Like getting admin access.
So far i found this KNOX SDK for Tizen native app. But i can't found any documentation related to importing that library and can't find any samples.
Is there any other way to override hardware keys.
Upvotes: 3
Views: 575
Reputation: 71
I don't know about KIOSK MODE.
But I will write about hardware key override. First of all, you can find about hardware key grab in link https://developer.tizen.org/development/ui-practices/native-application/efl/hardware-input-handling/grabbing-hardware-key-events
You can find hardware key name as below code. and all hardware key name is listed below link.
#incldue <Ecore.h>
#include <efl_extention.h>
static void
create_base_gui(appdata_s *ad)
{
:
// evas_object_smart_callback_add(ad->win, "delete,request", win_delete_request_cb, NULL);
// eext_object_event_callback_add(ad->win, EEXT_CALLBACK_BACK, win_back_cb, ad);
eext_win_keygrab_set(ad->win, "XF86Home");
:
}
static Eina_Bool
_key_down_cb (void *data, int type, void *ev)
{
Ecore_Event_Key *event = ev;
dlog_print(DLOG_ERROR, LOG_TAG, "key is %s", event->key);
// Let the event continue to other callbacks which have not been called yet
return ECORE_CALLBACK_DONE;
}
static bool
app_create(void *data)
{
appdata_s *ad = data;
create_base_gui(ad);
:
ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, _key_down_cb, NULL);
}
This sample code based on BasicUi online example code in SDK.
Upvotes: 1