Enum Class ChatMessage.State

java.lang.Object
java.lang.Enum<ChatMessage.State>
org.linphone.core.ChatMessage.State
All Implemented Interfaces:
Serializable, Comparable<ChatMessage.State>, Constable
Enclosing interface:
ChatMessage

public static enum ChatMessage.State extends Enum<ChatMessage.State>
  • Enum Constant Details

    • Idle

      public static final ChatMessage.State Idle
      Initial state.

    • InProgress

      public static final ChatMessage.State InProgress
      Delivery in progress.

    • Delivered

      public static final ChatMessage.State Delivered
      Message successfully delivered and acknowledged by the server.

    • NotDelivered

      public static final ChatMessage.State NotDelivered
      Message was not delivered.

    • FileTransferError

      public static final ChatMessage.State FileTransferError
      Message was received and acknowledged but cannot get file from server.

    • FileTransferDone

      public static final ChatMessage.State FileTransferDone
      File transfer has been completed successfully.

    • DeliveredToUser

      public static final ChatMessage.State DeliveredToUser
      Message successfully delivered an acknowledged by the remote user.

    • Displayed

      public static final ChatMessage.State Displayed
      Message successfully displayed to the remote user.

    • FileTransferInProgress

      public static final ChatMessage.State FileTransferInProgress
      File transfer is in progress.

      If message is incoming it's a download, otherwise it's an upload.
  • Field Details

    • mValue

      protected final int mValue
  • Method Details

    • values

      public static ChatMessage.State[] 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

      public static ChatMessage.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromInt

      public static ChatMessage.State fromInt(int value) throws RuntimeException
      Throws:
      RuntimeException
    • toInt

      public int toInt()