Package com.castlabs.sdk.mediasession
Class SessionCallbackBuilder
java.lang.Object
com.castlabs.sdk.mediasession.SessionCallbackBuilder
Builds a
MediaSession.SessionCallback
with various collaborators.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Provides allowed commands forMediaController
.static interface
Callbacks for querying what custom commands are supported, and for handling a custom command when a controller sends it.static final class
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
Callback for handling controller disconnection.static final class
ASessionCallbackBuilder.MediaItemProvider
that creates media items containing only a media ID.static interface
Provides theMediaItem
.static interface
Callback for handling extra initialization after the connection.static interface
Callback receiving a user rating for a specified media id.static interface
Callback receiving skip backward and skip forward. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default timeout value forsetSeekTimeoutMs(int)
. -
Method Summary
-
Field Details
-
DEFAULT_SEEK_TIMEOUT_MS
public static final int DEFAULT_SEEK_TIMEOUT_MSDefault timeout value forsetSeekTimeoutMs(int)
.- See Also:
-