AI-generated Key Takeaways
- 
          CastOptions provides configuration parameters for initializing the CastContext. 
- 
          An instance of CastOptions is created using the CastOptions.Builder. 
- 
          CastOptions includes methods to retrieve various configuration settings like CastMediaOptions, launch options, receiver application ID, and supported namespaces. 
- 
          There are also options to control session behavior, such as enabling a reconnection service, resuming saved sessions, and stopping the receiver application. 
Configuration parameters for initializing the CastContext.
      The CastOptions.Builder
      is used to create an instance of CastOptions,
      and so contains the corresponding setter methods.
Nested Class Summary
| class | CastOptions.Builder | A builder to create an instance of 
              CastOptionswhich is used to initialize theCastContext. | |
Inherited Constant Summary
Public Method Summary
| CastMediaOptions | 
                  
                  getCastMediaOptions()
                   
                    Returns the  
                    CastMediaOptionsthat is used to configure a media session. | 
| boolean | 
                  
                  getEnableReconnectionService()
                   
                    Returns  trueif
                    ReconnectionServiceshould be enabled when needed to better handle
                    session recovery. | 
| LaunchOptions | 
                  
                  getLaunchOptions()
                   
                    Returns the  LaunchOptions. | 
| String | 
                  
                  getReceiverApplicationId()
                   
                    Returns the cast receiver application ID.
                   | 
| boolean | 
                  
                  getResumeSavedSession()
                   
                    Returns  trueif the saved session should be resumed if it was
                    dropped unexpectedly. | 
| boolean | 
                  
                  getStopReceiverApplicationWhenEndingSession()
                   
                    Returns  trueif the receiver application should be stopped when
                    the session is ended by the user. | 
| List<String> | 
                  
                  getSupportedNamespaces()
                   
                    Returns the list of supported cast namespaces.
                   | 
| double | 
                  
                  getVolumeDeltaBeforeIceCreamSandwich()
                   
                    This method is deprecated. Google Play services discontinued updates for
                    Jelly Bean (API levels 16, 17 & 18) since July 2021. This method will be
                    removed in the next release.
                   | 
Inherited Method Summary
Public Methods
public CastMediaOptions getCastMediaOptions ()
Returns the CastMediaOptions
            that is used to configure a media session.
public boolean getEnableReconnectionService ()
Returns true if ReconnectionService
            should be enabled when needed to better handle session recovery.
public LaunchOptions getLaunchOptions ()
Returns the LaunchOptions.
public String getReceiverApplicationId ()
Returns the cast receiver application ID. This ID is used in discovering supported receivers, and launching an application when starting a new session.
public boolean getResumeSavedSession ()
Returns true if the saved session should be resumed if it was dropped
            unexpectedly. Returns false if the saved session should not be resumed in
            this case.
public boolean getStopReceiverApplicationWhenEndingSession ()
Returns true if the receiver application should be stopped when the
            session is ended by the user. Returns false if the receiver application
            should not be stopped in this case.
public double getVolumeDeltaBeforeIceCreamSandwich ()
This method is deprecated.
          Google Play services discontinued updates for Jelly Bean (API levels 16, 17 & 18) since
          July 2021. This method will be removed in the next release.
Returns the amount of receiver device volume to increase or decrease when the
            physical volume key is pressed on an Android device older than ICE CREAM SANDWICH. The
            SDK will call this method to obtain the volume delta when 
            CastContext.onDispatchVolumeKeyEventBeforeJellyBean(KeyEvent) is called. The
            return value is not used on Android devices running ICE CREAM SANDWICH or newer.