Package org.gnome.gio
Enum Class ApplicationFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<ApplicationFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum ApplicationFlags
extends Enum<ApplicationFlags>
implements Enumeration
Flags used to define the behaviour of a
GApplication
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAllow another instance to take over the bus name.Allow users to override the application ID from the command line with--gapplication-app-id
.Default.This application handles command line arguments (in the primary instance).This application handles opening files (in the primary instance).Don't try to become the primary instance.Run as a service.Make no attempts to do any of the typical single-instance application negotiation, even if the application ID is given.Take over from another instance.Send the environment of the launching process to the primary instance. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the ApplicationFlags classint
getValue()
Get the numeric value of this enumstatic ApplicationFlags
of
(int value) Create a new ApplicationFlags for the provided valuestatic ApplicationFlags
Returns the enum constant of this class with the specified name.static ApplicationFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLAGS_NONE
Default. Deprecated in 2.74, useDEFAULT_FLAGS
instead -
IS_SERVICE
Run as a service. In this mode, registration fails if the service is already running, and the application will initially wait up to 10 seconds for an initial activation message to arrive. -
IS_LAUNCHER
Don't try to become the primary instance. -
HANDLES_OPEN
This application handles opening files (in the primary instance). Note that this flag only affects the default implementation of local_command_line(), and has no effect ifHANDLES_COMMAND_LINE
is given. See g_application_run() for details. -
HANDLES_COMMAND_LINE
This application handles command line arguments (in the primary instance). Note that this flag only affect the default implementation of local_command_line(). See g_application_run() for details. -
SEND_ENVIRONMENT
Send the environment of the launching process to the primary instance. Set this flag if your application is expected to behave differently depending on certain environment variables. For instance, an editor might be expected to use theGIT_COMMITTER_NAME
environment variable when editing a git commit message. The environment is available to theGApplication
::command-line signal handler, via g_application_command_line_getenv(). -
NON_UNIQUE
Make no attempts to do any of the typical single-instance application negotiation, even if the application ID is given. The application neither attempts to become the owner of the application ID nor does it check if an existing owner already exists. Everything occurs in the local process. Since: 2.30. -
CAN_OVERRIDE_APP_ID
Allow users to override the application ID from the command line with--gapplication-app-id
. Since: 2.48 -
ALLOW_REPLACEMENT
Allow another instance to take over the bus name. Since: 2.60 -
REPLACE
Take over from another instance. This flag is usually set by passing--gapplication-replace
on the commandline. Since: 2.60
-
-
Field Details
-
DEFAULT_FLAGS
Default flags. Since: 2.74
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new ApplicationFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-