public enum GlobalState extends java.lang.Enum<GlobalState>
Core
object. Enum Constant | 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 |
|
Startup |
Modifier and Type | Field | Description |
---|---|---|
protected int |
mValue |
Modifier and Type | Method | Description |
---|---|---|
static GlobalState |
fromInt(int value) |
|
protected static GlobalState[] |
fromIntArray(int[] values) |
|
int |
toInt() |
|
protected static int[] |
toIntArray(GlobalState[] values) |
|
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()
. Core.start()
public static final GlobalState Startup
public static final GlobalState On
public static final GlobalState Shutdown
public static final GlobalState Configuring
public static final GlobalState Ready
Core
state after being created by linphone_factory_create_core,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
protected static GlobalState[] fromIntArray(int[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static int[] toIntArray(GlobalState[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()