# CastSettings Class

    open class CastSettings

The cast settings class wraps common settings for Chromecast `appId` is mandatory for casting.

### Lifecycle

- `init(_:)`

  Creates cast settings with the receiver app identifier.

  #### Declaration

  Swift

      public init(_ appId: String)

  #### Parameters

  `appId` | Receiver application identifier used for cast session launch.

### Public

- `appId`

  Receiver application identifier.

  #### Declaration

  Swift

      public let appId: String

- `debug`

  Enables additional debug logging/tracing in cast components.

  #### Declaration

  Swift

      public var debug: Bool

- `imaUrl`

  Optional ads server URL used by receiver integrations.

  #### Declaration

  Swift

      public var imaUrl: String?

- `preferredAudioLanguage`

  Preferred audio language for remote playback.

  #### Declaration

  Swift

      public var preferredAudioLanguage: String?

- `preferredTextLanguage`

  Preferred text/subtitle language for remote playback.

  #### Declaration

  Swift

      public var preferredTextLanguage: String?

- `position`

  Playback position for cast session in seconds.

  #### Declaration

  Swift

      public var position: Float64?