Segment

Represents a segment that was detected for the user.

Segment API

getAttributes()

List<Attribute> getAttributes()

Returns attributes pertaining to the segment.

getCategory()

SegmentCategory getCategory()

Returns the category of the segment.

getEndTime()

@Nullable DateTime getEndTime()

Returns the end time of the segment, if it has ended. Otherwise, returns null.

getSegmentId()

int getSegmentId()

Returns the unique ID of this segment.

getStartTime()

DateTime getStartTime()

Returns the start time of the segment.

getSubcategory()

SegmentSubcategory getSubcategory()

Returns the subcategory of the segment.

getType()

SegmentType getType()

Returns the type of the segment.

Last updated