Enum CallEndReason
- All Implemented Interfaces:
Comparable<CallEndReason>
Why a call ended. This is what the system writes into the call log, so
the value chosen is user-visible: a call reported as
REMOTE_ENDED shows differently from one reported as UNANSWERED.
The ordinals cross the SPI boundary, so existing constants must not be reordered.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe far end was busy.The call could not be set up -- no network, signalling failure, or a far end that never answered the invitation.The system, not the user, declined it: Do Not Disturb, or a number the user has blocked.This side hung up.The far end hung up.It rang and nobody picked up. -
Method Summary
Modifier and TypeMethodDescriptionstatic CallEndReasonReturns the enum constant of this type with the specified name.static CallEndReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
REMOTE_ENDED
The far end hung up. -
LOCAL_ENDED
This side hung up. -
UNANSWERED
It rang and nobody picked up. -
BUSY
The far end was busy. -
FAILED
The call could not be set up -- no network, signalling failure, or a far end that never answered the invitation. -
FILTERED
The system, not the user, declined it: Do Not Disturb, or a number the user has blocked. Distinct fromUNANSWEREDbecause the call never rang.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-