CameraTimelineTrait.TimelinePeriodStruct

class CameraTimelineTrait.TimelinePeriodStruct : ClusterStruct


The period of the timeline data.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

TimelinePeriodStruct(
    startTimeMillis: ULong,
    endTimeMillis: ULong,
    periodType: CameraTimelineTrait.PeriodType,
    noVideoPeriodData: OptionalValue<CameraTimelineTrait.NoVideoPeriodData>
)

Creates the TimelinePeriodStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

ULong

The end time of the timeline data in milliseconds since the Unix epoch.

OptionalValue<CameraTimelineTrait.NoVideoPeriodData>

The reason why the video is unavailable.

CameraTimelineTrait.PeriodType

The type of the period data.

ULong

The start time of the timeline data in milliseconds since the Unix epoch.

Public constructors

TimelinePeriodStruct

TimelinePeriodStruct(
    startTimeMillis: ULong,
    endTimeMillis: ULong,
    periodType: CameraTimelineTrait.PeriodType = PeriodType.Unspecified,
    noVideoPeriodData: OptionalValue<CameraTimelineTrait.NoVideoPeriodData> = OptionalValue.absent()
)

Creates the TimelinePeriodStruct class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

endTimeMillis

val endTimeMillisULong

The end time of the timeline data in milliseconds since the Unix epoch.

noVideoPeriodData

val noVideoPeriodDataOptionalValue<CameraTimelineTrait.NoVideoPeriodData>

The reason why the video is unavailable.

periodType

val periodTypeCameraTimelineTrait.PeriodType

The type of the period data.

startTimeMillis

val startTimeMillisULong

The start time of the timeline data in milliseconds since the Unix epoch.