Package org.linphone.core
Enum Class PublishState
- All Implemented Interfaces:
Serializable
,Comparable<PublishState>
,Constable
Enum for publish states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEvent has been un published.Publish encoutered an error,Event.getReason()
gives reason code.Publish is about to expire, only sent if [sip]->refresh_generic_publish
property is set to 0.An incoming publish is received.Initial state, do not use.Publish is accepted.An outgoing publish was created and submitted.Publish is about to terminate. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PublishState
fromInt
(int value) protected static PublishState[]
fromIntArray
(int[] values) int
toInt()
protected static int[]
toIntArray
(PublishState[] values) static PublishState
Returns the enum constant of this class with the specified name.static PublishState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
Initial state, do not use.
-
IncomingReceived
An incoming publish is received.
-
Ok
Publish is accepted.
-
Error
-
Expiring
Publish is about to expire, only sent if [sip]->refresh_generic_publish
property is set to 0.
-
Cleared
Event has been un published.
-
Terminating
Publish is about to terminate.
-
OutgoingProgress
An outgoing publish was created and submitted.
-
-
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()
-