Package org.linphone.core
Enum Class GlobalState
- All Implemented Interfaces:
Serializable
,Comparable<GlobalState>
,Constable
Describes the global state of the
It is notified via the global_state_changed() callback in
Core
object. It is notified via the global_state_changed() callback in
CoreListener
. -
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTransient state between Startup and On if there is a remote provisionning URI
configured.State in which we're in afterCore.stop()
.IndicatesCore
has been started and is up and running.Core
state after being created by linphone_factory_create_core,
generally followed by a call toCore.start()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalState
fromInt
(int value) protected static GlobalState[]
fromIntArray
(int[] values) int
toInt()
protected static int[]
toIntArray
(GlobalState[] values) static GlobalState
Returns the enum constant of this class with the specified name.static GlobalState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Off
State in which we're in afterCore.stop()
.
Do not call any method while in this state except forCore.start()
-
Startup
-
On
-
Shutdown
-
Configuring
Transient state between Startup and On if there is a remote provisionning URI
configured.
-
Ready
Core
state after being created by linphone_factory_create_core,
generally followed by a call toCore.start()
-
-
Field Details
-
mValue
protected final int mValue
-
-
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
-
fromInt
- Throws:
RuntimeException
-
fromIntArray
- Throws:
RuntimeException
-
toIntArray
- Throws:
RuntimeException
-
toInt
public int toInt()
-