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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceProvides allowed commands forMediaController.static interfaceCallbacks for querying what custom commands are supported, and for handling a custom command when a controller sends it.static final classDefault 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 interfaceCallback for handling controller disconnection.static final classASessionCallbackBuilder.MediaItemProviderthat creates media items containing only a media ID.static interfaceProvides theMediaItem.static interfaceCallback for handling extra initialization after the connection.static interfaceCallback receiving a user rating for a specified media id.static interfaceCallback receiving skip backward and skip forward. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault 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:
-