Interface Glib.OnIOFunc

Enclosing class:
Glib
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Glib.OnIOFunc
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onIOFunc(CallbackHandler __self, IOChannel source, int condition, Pointer user_data)
    Specifies the type of function passed to g_io_add_watch() or
    g_io_add_watch_full(), which is called when the requested condition
    on a #GIOChannel is satisfied.
  • Method Details

    • onIOFunc

      boolean onIOFunc(CallbackHandler __self, @Nonnull IOChannel source, int condition, @Nullable Pointer user_data)
      Specifies the type of function passed to g_io_add_watch() or
      g_io_add_watch_full(), which is called when the requested condition
      on a #GIOChannel is satisfied.
      Parameters:
      source - the #GIOChannel event source
      condition - the condition which has been satisfied
      user_data - user data set in g_io_add_watch() or g_io_add_watch_full()
      Returns:
      the function should return %FALSE if the event source should be removed