Package com.castlabs.android.settings

# Class AdSettings

java.lang.Object
com.castlabs.android.settings.AdSettings

public final class AdSettings extends Object
Global ad configuration settings.

These settings control ad playback behavior across the SDK.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `int`
  `creativeFormatFallback`
  Content type to use as fallback when ad creative format cannot be detected from URI.
  `static final int`
  `DEFAULT_CREATIVE_FORMAT_FALLBACK`
  Default content type to use as fallback when ad creative format cannot be detected.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AdSettings()`
  Default constructor

- ## Method Summary

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### DEFAULT_CREATIVE_FORMAT_FALLBACK

    @NonNull public static final int DEFAULT_CREATIVE_FORMAT_FALLBACK
    Default content type to use as fallback when ad creative format cannot be detected.

    Most ad creatives are MP4 files.

    See Also:
      - Constant Field Values

  - ### creativeFormatFallback

    public volatile int creativeFormatFallback
    Content type to use as fallback when ad creative format cannot be detected from URI.

    When an ad creative URI does not have a recognizable extension (e.g., contains query parameters or redirects), this content type will be attempted for playback.

    Common values:

    - `SdkConsts.CONTENT_TYPE_MP4` - Most common for ad creatives (default)
    - `SdkConsts.CONTENT_TYPE_HLS` - For HLS ad creatives
    - `SdkConsts.CONTENT_TYPE_DASH` - For DASH ad creatives
    - `SdkConsts.CONTENT_TYPE_UNKNOWN` - Disable fallback

- ## Constructor Details

  - ### AdSettings

    public AdSettings()
    Default constructor