Package com.sinch.android.rtc.calling
Interface CallDetails
-
public interface CallDetails
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDuration()
Returns the duration of the call in seconds.CallEndCause
getEndCause()
Returns the cause of why a call ended, after it has ended.java.util.Date
getEndedTime()
Returns the ended time of the call.SinchError
getError()
If the end cause isCallEndCause.FAILURE
, then this method returns an error object that describes the error.java.util.Date
getEstablishedTime()
Returns the time when the call was established.java.util.Date
getStartedTime()
Returns the started time of the call.boolean
isVideoOffered()
Whether the caller has offered video.
-
-
-
Method Detail
-
getStartedTime
java.util.Date getStartedTime()
Returns the started time of the call.- Returns:
- the started time of the call.
-
getEstablishedTime
java.util.Date getEstablishedTime()
Returns the time when the call was established.- Returns:
- the established time of the call. Returns 0 if call is not yet established.
-
getEndedTime
java.util.Date getEndedTime()
Returns the ended time of the call.- Returns:
- the ended time of the call. Returns 0 if call has not ended yet.
-
getDuration
int getDuration()
Returns the duration of the call in seconds.- Returns:
- the call duration in seconds.
-
getEndCause
CallEndCause getEndCause()
Returns the cause of why a call ended, after it has ended.- Returns:
- the
CallEndCause
to why a call ended.
-
isVideoOffered
boolean isVideoOffered()
Whether the caller has offered video.- Returns:
- true if the caller has offered video, otherwise false.
-
getError
SinchError getError()
If the end cause isCallEndCause.FAILURE
, then this method returns an error object that describes the error.- Returns:
- an error object if an error occurred, otherwise null.
-
-