Package com.castlabs.sdk.mediasession
Class SessionCallbackBuilder
- java.lang.Object
-
- com.castlabs.sdk.mediasession.SessionCallbackBuilder
-
public final class SessionCallbackBuilder extends Object
Builds aMediaSession.SessionCallbackwith various collaborators.- See Also:
MediaSession.SessionCallback
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSessionCallbackBuilder.AllowedCommandProviderProvides allowed commands forMediaController.static interfaceSessionCallbackBuilder.CustomCommandProviderCallbacks for querying what custom commands are supported, and for handling a custom command when a controller sends it.static classSessionCallbackBuilder.DefaultAllowedCommandProviderDefault implementation ofSessionCallbackBuilder.AllowedCommandProviderthat 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 interfaceSessionCallbackBuilder.DisconnectedCallbackCallback for handling controller disconnection.static classSessionCallbackBuilder.MediaIdMediaItemProviderASessionCallbackBuilder.MediaItemProviderthat creates media items containing only a media ID.static interfaceSessionCallbackBuilder.MediaItemProviderProvides theMediaItem.static interfaceSessionCallbackBuilder.PostConnectCallbackCallback for handling extra initialization after the connection.static interfaceSessionCallbackBuilder.RatingCallbackCallback receiving a user rating for a specified media id.static interfaceSessionCallbackBuilder.SkipCallbackCallback receiving skip backward and skip forward.
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_SEEK_TIMEOUT_MSDefault 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
-
-