# Index

A B C E G I M N O R S T W
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

## A

addSession(PlayerConfig) - Method in class com.castlabs.sdk.broadpeak.SessionManager
  Create and adds the a session

## B

BroadpeakComponent - Class in com.castlabs.sdk.broadpeak
  Broadpeak player component.
BroadpeakPlugin - Class in com.castlabs.sdk.broadpeak
  This plugin integrates Broadpeak Analytics with the castLabs Player SDK.
BroadpeakPlugin(String, String, String) - Constructor for class com.castlabs.sdk.broadpeak.BroadpeakPlugin
BroadpeakSessionException - Exception Class in com.castlabs.sdk.broadpeak
  Exception to represent an issue from Broadpeak.

## C

clear() - Method in class com.castlabs.sdk.broadpeak.SessionManager
  Removes all Sessions
com.castlabs.sdk.broadpeak - package com.castlabs.sdk.broadpeak
contains(PlayerConfig) - Method in class com.castlabs.sdk.broadpeak.SessionManager
createMetadata(boolean, String, Bundle, SparseArray<Object>) - Static method in class com.castlabs.sdk.broadpeak.BroadpeakPlugin
  Create analytics metadata based on provided data
createMetadata(AnalyticsMetaData, Bundle, SparseArray<Object>) - Static method in class com.castlabs.sdk.broadpeak.BroadpeakPlugin
  Update provided analytics metadata with extra Broadpeak metadata

## E

extractBroadpeakToken(String) - Static method in class com.castlabs.sdk.broadpeak.SessionManager

## G

getCause() - Method in exception class com.castlabs.sdk.broadpeak.BroadpeakSessionException
getConfig() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
  The config for the current session
getId() - Method in class com.castlabs.sdk.broadpeak.BroadpeakPlugin
getMessage() - Method in exception class com.castlabs.sdk.broadpeak.BroadpeakSessionException
getSessionByConfig(PlayerConfig) - Method in class com.castlabs.sdk.broadpeak.SessionManager
  Returns the Session which contains the provided `PlayerConfig`
getSessions() - Method in class com.castlabs.sdk.broadpeak.SessionManager
getSessionUrl() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
  The redirected url for the current session
getState() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
getStreamingSessionResult() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
getToken() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
  The token for the current session

## I

id() - Method in class com.castlabs.sdk.broadpeak.BroadpeakComponent
init(Context) - Method in class com.castlabs.sdk.broadpeak.BroadpeakPlugin

## M

maybeUpdateUrl(Request) - Method in class com.castlabs.sdk.broadpeak.SessionManager
  Updates the given URL in case it contains a token and it needs to be replaced by an updated one due to a renewal.

## N

notifyFirstImage() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
notifyLayerSwitch(int) - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
notifyPause() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
notifyResume() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
notifySeek(long, long) - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
notifyStallEnd(boolean) - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
notifyStallStart() - Method in class com.castlabs.sdk.broadpeak.SessionWrapper

## O

onCurrentSessionChanged(SessionWrapper) - Method in class com.castlabs.sdk.broadpeak.SessionManager
onDestroy(PlayerController) - Method in class com.castlabs.sdk.broadpeak.BroadpeakComponent
onOpenBundle(PlayerController, Bundle) - Method in class com.castlabs.sdk.broadpeak.BroadpeakComponent
onOpenState(PlayerController, PlayerConfig) - Method in class com.castlabs.sdk.broadpeak.BroadpeakComponent

## R

removeSession(SessionWrapper) - Method in class com.castlabs.sdk.broadpeak.SessionManager
  Removes the provided session
renew(Handler) - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
  Renew a session.
renew(SessionWrapper) - Method in class com.castlabs.sdk.broadpeak.SessionManager

## S

SESSION_START_RETRIES - Static variable in class com.castlabs.sdk.broadpeak.BroadpeakPlugin
SessionManager - Class in com.castlabs.sdk.broadpeak
  Container for multiple `SessionApi`.
SessionManager(PlayerInfoApi) - Constructor for class com.castlabs.sdk.broadpeak.SessionManager
SessionWrapper - Class in com.castlabs.sdk.broadpeak
  Wrapper around `SessionApi`.
setActive(boolean) - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
  Set whether this wrapper is active or not.
setEnabled(boolean) - Method in class com.castlabs.sdk.broadpeak.BroadpeakPlugin
  Enables or disables the BroadpeakPlugin.
size() - Method in class com.castlabs.sdk.broadpeak.SessionManager
startSession(Handler) - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
  Start the session.
STATE_IDLE - Static variable in class com.castlabs.sdk.broadpeak.SessionWrapper
  The Wrapper is IDLE.
STATE_READY - Static variable in class com.castlabs.sdk.broadpeak.SessionWrapper
  The Wrapper is ready.
STATE_STARTING - Static variable in class com.castlabs.sdk.broadpeak.SessionWrapper
  The Wrapper is starting or renewing a session.
stopStreamingSession(Integer) - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
  Stops the ongoing session

## T

TOKEN_URL_PATTERN - Static variable in class com.castlabs.sdk.broadpeak.SessionManager
  Regular expression to extract the session id out of a redirected Broadpeak URL.

## W

waitForState(int, int) - Method in class com.castlabs.sdk.broadpeak.SessionWrapper
  Block execution until the desired state is reached

A B C E G I M N O R S T W
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form