Interface Application.OnNameLost

Enclosing class:
Application
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 Application.OnNameLost
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The ::name-lost signal is emitted only on the registered primary instance
    when a new instance has taken over.
  • Method Details

    • onNameLost

      boolean onNameLost()
      The ::name-lost signal is emitted only on the registered primary instance
      when a new instance has taken over. This can only happen if the application
      is using the %G_APPLICATION_ALLOW_REPLACEMENT flag.

      The default handler for this signal calls g_application_quit().
      Returns:
      %TRUE if the signal has been handled