SlowMotionData.Segment


class SlowMotionData.Segment : Parcelable


Holds information about a single segment of slow motion playback within a track.

Summary

Public constructors

Segment(startTimeMs: Long, endTimeMs: Long, speedDivisor: Int)

Creates an instance.

Public functions

Int
Boolean
equals(o: Any?)
Int
String!
Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

Long

The end time, in milliseconds, of the track segment that is intended to be slow motion.

Int

The speed reduction factor.

Long

The start time, in milliseconds, of the track segment that is intended to be slow motion.

Constants

BY_START_THEN_END_THEN_DIVISOR

const val BY_START_THEN_END_THEN_DIVISORComparator<SlowMotionData.Segment!>!

Public constructors

Segment

Segment(startTimeMs: Long, endTimeMs: Long, speedDivisor: Int)

Creates an instance.

Parameters
startTimeMs: Long

See startTimeMs. Must be less than endTimeMs.

endTimeMs: Long

See endTimeMs.

speedDivisor: Int

See speedDivisor.

Public functions

describeContents

fun describeContents(): Int

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

endTimeMs

val endTimeMsLong

The end time, in milliseconds, of the track segment that is intended to be slow motion.

speedDivisor

val speedDivisorInt

The speed reduction factor.

For example, 4 would mean the segment should be played at a quarter (1/4) of the normal speed.

startTimeMs

val startTimeMsLong

The start time, in milliseconds, of the track segment that is intended to be slow motion.