Tizen Native API

Display a container in a particular region of the parent(top, bottom, etc).

notify_inheritance_tree.png

A timeout can be set to automatically hide the notify widget. This is so that, after an evas_object_show() on a notify object, if a timeout is set on it, it automatically gets hidden after that time.

Signals that you can add callbacks for are:

  • "timeout" - When timeout happens on a notification and it's hidden.
  • "block,clicked" - When a click outside of the notification happens.

The functions meant to act on it work for mapbuf objects:

The default content parts of the notify widget that you can use are:

  • "default" - The main content of the notify widget.

Functions

Evas_Objectelm_notify_add (Evas_Object *parent)
 Adds a new notify widget to the parent.
void elm_notify_parent_set (Evas_Object *obj, Evas_Object *parent)
 Sets the notify parent.
Evas_Objectelm_notify_parent_get (const Evas_Object *obj)
 Gets the notify parent.
void elm_notify_timeout_set (Evas_Object *obj, double timeout)
 Sets the time interval after which the notify window is going to be hidden.
double elm_notify_timeout_get (const Evas_Object *obj)
 Gets the timeout value (in seconds).
void elm_notify_allow_events_set (Evas_Object *obj, Eina_Bool allow)
 Sets whether events should be passed by a click outside its area.
Eina_Bool elm_notify_allow_events_get (const Evas_Object *obj)
 Gets true if events are allowed below the notify object.
void elm_notify_align_set (Evas_Object *obj, double horizontal, double vertical)
 Sets the alignment of the notify object.
void elm_notify_align_get (const Evas_Object *obj, double *horizontal, double *vertical)
 Gets the alignment of the notify object.
void elm_notify_dismiss (Evas_Object *obj)
 Dismiss a notify object.

Defines

#define ELM_NOTIFY_ALIGN_FILL   -1.0

Define Documentation

#define ELM_NOTIFY_ALIGN_FILL   -1.0

Use with elm_notify_align_set()

Since (EFL) :
1.8

Function Documentation

Adds a new notify widget to the parent.

Since :
2.3.1
Parameters:
[in]parentThe parent object
Returns:
The new object, otherwise NULL if it cannot be created
void elm_notify_align_get ( const Evas_Object obj,
double *  horizontal,
double *  vertical 
)

Gets the alignment of the notify object.

Since (EFL) :
1.8
Since :
2.3.1
Parameters:
[in]objThe notify object
[out]horizontalThe horizontal alignment of the notification
[out]verticalThe vertical alignment of the notification
See also:
elm_notify_align_set()
void elm_notify_align_set ( Evas_Object obj,
double  horizontal,
double  vertical 
)

Sets the alignment of the notify object.

This sets the alignment in which the notify appears in its parent.

Since (EFL) :
1.8
Since :
2.3.1
Remarks:
To fill the notify box in the parent area, pass the ELM_NOTIFY_ALIGN_FILL to horizontal, vertical.
Parameters:
[in]objThe notify object
[in]horizontalThe horizontal alignment of the notification
[in]verticalThe vertical alignment of the notification

Gets true if events are allowed below the notify object.

Since :
2.3.1
Parameters:
[in]objThe notify object
Returns:
EINA_TRUE if events are allowed, otherwise EINA_FALSE.
See also:
elm_notify_allow_events_set()
void elm_notify_allow_events_set ( Evas_Object obj,
Eina_Bool  allow 
)

Sets whether events should be passed by a click outside its area.

Since :
2.3.1
Remarks:
When true if the user clicks outside the window the events are caught by the other widgets, else the events are blocked.
The default value is EINA_TRUE.
Parameters:
[in]objThe notify object
[in]allowIf EINA_TRUE events are allowed, otherwise EINA_FALSE if they are not

Dismiss a notify object.

Since :
2.3.1
Parameters:
[in]objThe notify object

Use this function to dismiss the notify with hide effect. when the notify is dismissed, the "dismissed" signal will be emitted.

Gets the notify parent.

Since :
2.3.1
Parameters:
[in]objThe notify object
Returns:
The parent
See also:
elm_notify_parent_set()
void elm_notify_parent_set ( Evas_Object obj,
Evas_Object parent 
)

Sets the notify parent.

Since :
2.3.1
Remarks:
Once the parent object is set, a previously set one is disconnected and replaced.
Parameters:
[in]objThe notify object
[in]parentThe new parent
double elm_notify_timeout_get ( const Evas_Object obj)

Gets the timeout value (in seconds).

Since :
2.3.1
Parameters:
[in]objThe notify object
Returns:
The timeout in seconds
See also:
elm_notify_timeout_set()
void elm_notify_timeout_set ( Evas_Object obj,
double  timeout 
)

Sets the time interval after which the notify window is going to be hidden.

This function sets a timeout and starts the timer controlling when the notification is hidden. Since calling evas_object_show() on a notification restarts the timer controlling when the notification is hidden, setting this before the notification is shown means starting the timer when the notification is shown.

Since :
2.3.1
Remarks:
Set a value <= 0.0 to disable a running timer.
If the value > 0.0 and the notification is previously visible, the timer is started with this value, cancelling any running timer.
Parameters:
[in]objThe notify object
[in]timeoutThe timeout in seconds