Package com.castlabs.sdk.mediasession
Class SessionCallbackBuilder
- java.lang.Object
-
- com.castlabs.sdk.mediasession.SessionCallbackBuilder
-
public final class SessionCallbackBuilder extends Object
Builds aMediaSession.SessionCallback
with various collaborators.- See Also:
MediaSession.SessionCallback
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SessionCallbackBuilder.AllowedCommandProvider
Provides allowed commands forMediaController
.static interface
SessionCallbackBuilder.CustomCommandProvider
Callbacks for querying what custom commands are supported, and for handling a custom command when a controller sends it.static class
SessionCallbackBuilder.DefaultAllowedCommandProvider
Default implementation ofSessionCallbackBuilder.AllowedCommandProvider
that behaves as follows: Accepts connection requests from controller if any of the following conditions are met: Controller is in the same package as the session.static interface
SessionCallbackBuilder.DisconnectedCallback
Callback for handling controller disconnection.static class
SessionCallbackBuilder.MediaIdMediaItemProvider
ASessionCallbackBuilder.MediaItemProvider
that creates media items containing only a media ID.static interface
SessionCallbackBuilder.MediaItemProvider
Provides theMediaItem
.static interface
SessionCallbackBuilder.PostConnectCallback
Callback for handling extra initialization after the connection.static interface
SessionCallbackBuilder.RatingCallback
Callback receiving a user rating for a specified media id.static interface
SessionCallbackBuilder.SkipCallback
Callback receiving skip backward and skip forward.
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_SEEK_TIMEOUT_MS
Default timeout value forsetSeekTimeoutMs(int)
.
-
-
-
Field Detail
-
DEFAULT_SEEK_TIMEOUT_MS
public static final int DEFAULT_SEEK_TIMEOUT_MS
Default timeout value forsetSeekTimeoutMs(int)
.- See Also:
- Constant Field Values
-
-