Pepper_47_C_interfaces
Public Attributes | List of all members
PPB_RemoteController_Samsung_0_1 Struct Reference

#include <ppb_remote_controller_samsung.h>

Collaboration diagram for PPB_RemoteController_Samsung_0_1:
Collaboration graph

Public Attributes

int32_t(* RegisterKeys )(PP_Instance instance, uint32_t key_count, const char *keys[])
 
int32_t(* UnRegisterKeys )(PP_Instance instance, uint32_t key_count, const char *keys[])
 

Detailed Description

The PPB_RemoteControl_Samsung interface contains pointer to functions related to Remote Controller.

See https://www.samsungdforum.com/TizenGuide/tizen231/index.html for description of Remote Controller and its keys.

Definition at line 46 of file ppb_remote_controller_samsung.h.

Member Data Documentation

int32_t(* PPB_RemoteController_Samsung_0_1::RegisterKeys)(PP_Instance instance, uint32_t key_count, const char *keys[])

RegisterKeys() function registers given key arrays to be grabbed by the application/widget containing pepper plugin calling this method.

Note: After registering for grabbing keys, events related to that key will be delivered directly to the application/widget.

Note: For some embedders, we can`t tell if key that we try to register have failed because it have been already registered. So if at least one key have been successfully processed, we assume that other keys that failed, have been already registered before this call.

Parameters
[in]instanceA PP_Instance identifying instance of the module
[in]key_countA number of keys which will be grabbed.
[in]keysAn array containing list of keys which should be grabbed.
Returns
An int32_t containing an error code from pp_errors.h. Returns PP_ERROR_BADARGUMENT if key_count is equal 0 or one of keys is not supported anymore. Returns PP_ERROR_NOTSUPPORTED if currently launched embedder doesn`t support key registering. Returns PP_ERROR_FAILED if registering all keys have failed. Returns PP_OK if at lest one key from keys have been registered.

Definition at line 76 of file ppb_remote_controller_samsung.h.

int32_t(* PPB_RemoteController_Samsung_0_1::UnRegisterKeys)(PP_Instance instance, uint32_t key_count, const char *keys[])

UnregisterKeys() function unregisters given key arrays from being grabbed by the application/widget containing pepper plugin calling this method.

Note: For some embedders, we can`t tell if key that we try to unregister have failed because it have been already unregistered. So if at least one key have been successfully processed, we assume that other keys that failed, have been already unregistered before this call.

Parameters
[in]instanceA PP_Instance identifying instance of the module
[in]key_countA number of keys which will be grabbed.
[in]keysAn array containing list of keys which should be grabbed.
Returns
An int32_t containing an error code from pp_errors.h. Returns PP_ERROR_BADARGUMENT if key_count is equal 0 or one of keys is not supported anymore. Returns PP_ERROR_NOTSUPPORTED if currently launched embedder doesn`t support key registering. Returns PP_ERROR_FAILED if registering all keys have failed. Returns PP_OK if at lest one key from keys have been registered.

Definition at line 104 of file ppb_remote_controller_samsung.h.


The documentation for this struct was generated from the following file: