public static interface SessionCallbackBuilder.SkipCallback
Modifier and Type | Method | Description |
---|---|---|
int |
onSkipBackward(androidx.media2.session.MediaSession session,
androidx.media2.session.MediaSession.ControllerInfo controllerInfo) |
Called when the specified controller has sent skip backward.
|
int |
onSkipForward(androidx.media2.session.MediaSession session,
androidx.media2.session.MediaSession.ControllerInfo controllerInfo) |
Called when the specified controller has sent skip forward.
|
int onSkipBackward(androidx.media2.session.MediaSession session, androidx.media2.session.MediaSession.ControllerInfo controllerInfo)
session
- The media session.controllerInfo
- The MediaSession.ControllerInfo
for the controller that has requested to
skip backward.SessionResult
RESULT_*
constants describing the success or
failure of the operation, for example, SessionResult.RESULT_SUCCESS
if the
operation succeeded.MediaSession.SessionCallback.onSkipBackward(MediaSession, MediaSession.ControllerInfo)
,
MediaController.skipBackward()
int onSkipForward(androidx.media2.session.MediaSession session, androidx.media2.session.MediaSession.ControllerInfo controllerInfo)
session
- The media session.controllerInfo
- The MediaSession.ControllerInfo
for the controller that has requested to
skip forward.SessionResult
RESULT_*
constants describing the success or
failure of the operation, for example, SessionResult.RESULT_SUCCESS
if the
operation succeeded.MediaSession.SessionCallback.onSkipForward(MediaSession, MediaSession.ControllerInfo)
,
MediaController.skipForward()