public enum GlobalState extends java.lang.Enum<GlobalState>
Core
object.
It is notified via the LinphoneCoreVTable::global_state_changedEnum Constant and Description |
---|
Configuring
Transient state between Startup and On if there is a remote provisionning URI
configured.
|
Off
State in which we're in after
Core.stop() . |
On
Indicates
Core has been started and is up and running. |
Ready
Core state after being created by linphone_factory_create_core,
generally followed by a call to Core.start() |
Shutdown
Transient state for when we call
Core.stop() |
Startup
Transient state for when we call
Core.start() |
Modifier and Type | Field and Description |
---|---|
protected int |
mValue |
Modifier and Type | Method and Description |
---|---|
static GlobalState |
fromInt(int value) |
int |
toInt() |
static GlobalState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GlobalState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlobalState Off
Core.stop()
.
Do not call any method while in this state except for Core.start()
public static final GlobalState Startup
Core.start()
public static final GlobalState On
Core
has been started and is up and running.public static final GlobalState Shutdown
Core.stop()
public static final GlobalState Configuring
public static final GlobalState Ready
Core
state after being created by linphone_factory_create_core,
generally followed by a call to Core.start()
public static GlobalState[] values()
for (GlobalState c : GlobalState.values()) System.out.println(c);
public static GlobalState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static GlobalState fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()