Tizen Native API  3.0

Minicontrol Provider APIs.

Required Header

#include <minicontrol-provider.h>

Overview

It provides functions for creating EFL socket window.

Functions

Evas_Objectminicontrol_create_window (const char *name, minicontrol_target_viewer_e target_viewer, minicontrol_event_cb callback)
 Creates a window for minicontrol.
int minicontrol_send_event (Evas_Object *minicontrol, minicontrol_provider_event_e event, bundle *event_arg)
 Sends a event to the viewer.

Typedefs

typedef void(* minicontrol_event_cb )(minicontrol_viewer_event_e event_type, bundle *event_arg)
 Called when a event comes from viewer.

Typedef Documentation

typedef void(* minicontrol_event_cb)(minicontrol_viewer_event_e event_type, bundle *event_arg)

Called when a event comes from viewer.

Since :
2.4
Parameters:
[in]event_typeThe type of fired event
[in]event_argArgument of the event
Precondition:
minicontrol_viewer_register_event_callback() used to register this callback.
See also:
minicontrol_create_window
minicontrol_viewer_event_e

Function Documentation

Evas_Object* minicontrol_create_window ( const char *  name,
minicontrol_target_viewer_e  target_viewer,
minicontrol_event_cb  callback 
)

Creates a window for minicontrol.

Since :
2.4
Parameters:
[in]nameName of minicontrol socket window
[in]target_viewerTarget viewer for minicontrol. You can select multiple viewers by using bitwise OR operator
[in]callbackA callback function for events originated by minicontrol viewer
Returns:
Evas object of socket window. NULL failed to create, get_last_result() will return reason of failure
See also:
minicontrol_target_viewer_e
minicontrol_event_cb
int minicontrol_send_event ( Evas_Object minicontrol,
minicontrol_provider_event_e  event,
bundle event_arg 
)

Sends a event to the viewer.

Remarks:
When a viewer doesn't handle some events, it can be ignored.
Since :
2.4
Parameters:
[in]minicontrolMinicontrol window
[in]eventType of the event
[in]event_argBundle argument of the event
Returns:
MINICONTROL_ERROR_NONE on success, otherwise an error code on failure
Return values:
MINICONTROL_ERROR_INVALID_PARAMETERInvalid argument
See also:
minicontrol_provider_event_e
minicontrol_create_window