Package com.castlabs.sdk.mediasession
Interface SessionCallbackBuilder.SkipCallback
- Enclosing class:
SessionCallbackBuilder
public static interface SessionCallbackBuilder.SkipCallback
Callback receiving skip backward and skip forward.
-
Method Summary
Modifier and TypeMethodDescriptionintonSkipBackward(androidx.media2.session.MediaSession session, androidx.media2.session.MediaSession.ControllerInfo controllerInfo) Called when the specified controller has sent skip backward.intonSkipForward(androidx.media2.session.MediaSession session, androidx.media2.session.MediaSession.ControllerInfo controllerInfo) Called when the specified controller has sent skip forward.
-
Method Details
-
onSkipBackward
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- TheMediaSession.ControllerInfofor the controller that has requested to skip backward.- Returns:
- One of the
SessionResultRESULT_*constants describing the success or failure of the operation, for example,SessionResult.RESULT_SUCCESSif the operation succeeded. - See Also:
-
onSkipForward
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- TheMediaSession.ControllerInfofor the controller that has requested to skip forward.- Returns:
- One of the
SessionResultRESULT_*constants describing the success or failure of the operation, for example,SessionResult.RESULT_SUCCESSif the operation succeeded. - See Also:
-