Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96cf6746 authored by Tyler Gunn's avatar Tyler Gunn Committed by Gerrit Code Review
Browse files

Merge "Add intdef for Telecom connection states."

parents feb82a11 50d437fb
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -109,6 +109,20 @@ import java.util.concurrent.ConcurrentHashMap;
 */
public abstract class Connection extends Conferenceable {

    /**@hide*/
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(prefix = "STATE_", value = {
            STATE_INITIALIZING,
            STATE_NEW,
            STATE_RINGING,
            STATE_DIALING,
            STATE_ACTIVE,
            STATE_HOLDING,
            STATE_DISCONNECTED,
            STATE_PULLING_CALL
    })
    public @interface ConnectionState {}

    /**
     * The connection is initializing. This is generally the first state for a {@code Connection}
     * returned by a {@link ConnectionService}.