toggle menu
horologist
jvm
switch theme
search in API
media-core
/
com.google.android.horologist.media.model
/
MediaPositionPredictor
Media
Position
Predictor
data
class
MediaPositionPredictor
(
eventTimestamp
:
Long
,
durationMs
:
Long
,
currentPositionMs
:
Long
,
positionSpeed
:
Float
)
:
PositionPredictor
(
source
)
Members
Constructors
Media
Position
Predictor
Link copied to clipboard
constructor
(
eventTimestamp
:
Long
,
durationMs
:
Long
,
currentPositionMs
:
Long
,
positionSpeed
:
Float
)
Functions
predict
Duration
Link copied to clipboard
open
override
fun
predictDuration
(
timestamp
:
Long
)
:
Duration
predict
Percent
Link copied to clipboard
open
override
fun
predictPercent
(
timestamp
:
Long
)
:
Float
predict
Position
Link copied to clipboard
open
override
fun
predictPosition
(
timestamp
:
Long
)
:
Duration