Fetch Call Logs
UseCallLogRequest to fetch call logs with pagination support. The builder pattern allows you to filter results by various criteria.
CallLogRequestBuilder
CallLogRequestBuilder is a top-level class and exposes public fields, not setX()
methods — configure it with Dart cascades, then .build().
Unlike
SessionSettingsBuilder, which takes cascaded setter calls (..setType(...)), this
builder takes cascaded field assignments (..callType = "video"). The two look alike and are
not the same shape.hasTranscriptions is the one exception: it has a setHasTranscriptions(bool) method as well as
the field, added for parity with the other CometChat SDKs. Either works; the field assignment is
consistent with the rest of this builder.Filter Examples
Pagination
UsefetchNext() and fetchPrevious() for pagination:
CallLog Object
EachCallLog object contains detailed information about a call:
Access Recordings
If a call has recordings, access them through therecordings property:
Access Transcripts
Available since v5.0.7 SethasTranscriptions to fetch only calls that were transcribed. Opting in also makes the server
attach each call’s transcripts to the log:
getTranscriptions() returns an empty list when the server omitted transcripts, so it never needs a null check. Leaving the filter off sends no filter at all, so the list comes back unfiltered. To page through a single session’s transcripts directly, use TranscriptRequestBuilder.
Call Status Values
Call Status Values
Call Category Values
Call Category Values
Call Direction Values
Call Direction Values