Description

Notifies can_read property changed.

If Efl.Io.Reader.can_read is true there is data to Efl.Io.Reader.read without blocking/error. If Efl.Io.Reader.can_read is false, Efl.Io.Reader.read would either block or fail.

Note that usually this event is dispatched from inside Efl.Io.Reader.read, thus before it returns.

Since 1.19

Signature

can_read,changed;

C information

C usage

static void
on_efl_io_reader_event_can_read_changed(void *data, const Efl_Event *event)
{
    void info = event->info;
    Eo *obj = event->object;
    Data *d = data;
 
    /* event hander code */
}
 
static void
setup_event_handler(Eo *obj, Data *d)
{
    efl_event_callback_add(obj, EFL_IO_READER_EVENT_CAN_READ_CHANGED, on_efl_io_reader_event_can_read_changed, d);
}