Tizen Native API  5.0
System Events

Ecore is aware of some system events that one may be interested, they are described below:

Functions

Ecore_Memory_State ecore_memory_state_get (void)
 Gets the current status of memory on the system.
void ecore_memory_state_set (Ecore_Memory_State state)
 Sets the memory state.
Ecore_Power_State ecore_power_state_get (void)
 Gets the current power state.
void ecore_power_state_set (Ecore_Power_State state)
 Sets the power state.

Enumeration Type Documentation

Indicates current system memory state.

Since (EFL) :
1.8
Enumerator:
ECORE_MEMORY_STATE_NORMAL 

The normal memory usage state. No need to do anything special here - operation as normal.

ECORE_MEMORY_STATE_LOW 

The system is low on memory resources. This would indicate that it may be a good idea to free memory you don't need and minimize footprint to avoid general system problems.

Indicates current system memory state.

Since (EFL) :
1.8
Enumerator:
ECORE_POWER_STATE_MAINS 

The system is connected to a mains supply of power, thus there is no need to limit processing to save battery life at all.

ECORE_POWER_STATE_BATTERY 

The system is running off battery power, but is otherwise running normally.

ECORE_POWER_STATE_LOW 

The system is low on power (on battery) and the process should do its best to conserve power. For example it may reduce or suspend polling of network resources, turn off animations or reduce framerate etc.


Function Documentation

Ecore_Memory_State ecore_memory_state_get ( void  )

Gets the current status of memory on the system.

Returns:
The current memory state for the system as a whole.
Since (EFL) :
1.8
Since :
3.0
void ecore_memory_state_set ( Ecore_Memory_State  state)

Sets the memory state.

Parameters:
stateThe memory state to set.

This function will store information about the current memory state and if it changed will automatically create an ECORE_EVENT_MEMORY_STATE event.

Note:
This function should not be called by user, instead a monitoring entity that is system dependent. Usually an ecore module that is platform-specific.
Since (EFL) :
1.8
Since :
3.0
Ecore_Power_State ecore_power_state_get ( void  )

Gets the current power state.

Returns:
The current power state for the system.
Since (EFL) :
1.8
Since :
3.0
void ecore_power_state_set ( Ecore_Power_State  state)

Sets the power state.

Parameters:
stateThe power state to set.

This function will store information about the current power state and if it changed will automatically create an ECORE_EVENT_POWER_STATE event.

Note:
This function should not be called by user, instead a monitoring entity that is system dependent. Usually an ecore module that is platform-specific.
Since (EFL) :
1.8
Since :
3.0