Språk

Duration Enum

Definition

Identifies a completed call's duration category.

public enum Duration
type Duration = 
Inheritance
Duration

Fields

Name Value Description
VeryShort 0

An integer value for EXTRA_CALL_DURATION that indicates that the completed call lasted less than 3 seconds.

Android reference for android.telecom.TelecomManager.DURATION_VERY_SHORT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Short 1

An integer value for EXTRA_CALL_DURATION that indicates that the completed call lasted at least 3 seconds but less than 60 seconds.

Android reference for android.telecom.TelecomManager.DURATION_SHORT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Medium 2

An integer value for EXTRA_CALL_DURATION that indicates that the completed call lasted at least 60 seconds but less than 120 seconds.

Android reference for android.telecom.TelecomManager.DURATION_MEDIUM.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Long 3

An integer value for EXTRA_CALL_DURATION that indicates that the completed call lasted at least 120 seconds.

Android reference for android.telecom.TelecomManager.DURATION_LONG.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

These values are used with ExtraCallDuration; they are categories, not durations in seconds.

Applies to