Interface Application.OnCommandLine

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.OnCommandLine
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The ::command-line signal is emitted on the primary instance when
    a commandline is not handled locally.
  • Method Details

    • onCommandLine

      int onCommandLine(@Nonnull ApplicationCommandLine command_line)
      The ::command-line signal is emitted on the primary instance when
      a commandline is not handled locally. See g_application_run() and
      the #GApplicationCommandLine documentation for more information.
      Parameters:
      command_line - a #GApplicationCommandLine representing the passed commandline
      Returns:
      An integer that is set as the exit status for the calling process. See g_application_command_line_set_exit_status().