docs/doc/reference/com/google/android/exoplayer2/ext/media2/SessionCallbackBuilder.SkipCallback.html
Package com.google.android.exoplayer2.ext.media2
public static interfaceSessionCallbackBuilder.SkipCallback
Callback receiving skip backward and skip forward.
All Methods Instance Methods Abstract Methods | 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)
Called when the specified controller has sent skip backward.
Parameters:session - The media session.controllerInfo - The MediaSession.ControllerInfo for the controller that has requested to skip backward.Returns:One of the SessionResult RESULT_* constants describing the success or failure of the operation, for example, SessionResult.RESULT_SUCCESS if the operation succeeded.See Also:MediaSession.SessionCallback.onSkipBackward(MediaSession, MediaSession.ControllerInfo), MediaController.skipBackward()
-
int onSkipForward(androidx.media2.session.MediaSession session,
androidx.media2.session.MediaSession.ControllerInfo controllerInfo)
Called when the specified controller has sent skip forward.
Parameters:session - The media session.controllerInfo - The MediaSession.ControllerInfo for the controller that has requested to skip forward.Returns:One of the SessionResult RESULT_* constants describing the success or failure of the operation, for example, SessionResult.RESULT_SUCCESS if the operation succeeded.See Also:MediaSession.SessionCallback.onSkipForward(MediaSession, MediaSession.ControllerInfo), MediaController.skipForward()