Package com.castlabs.android.settings
Class AdSettings
java.lang.Object
com.castlabs.android.settings.AdSettings
Global ad configuration settings.
These settings control ad playback behavior across the SDK.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintContent type to use as fallback when ad creative format cannot be detected from URI.static final intDefault content type to use as fallback when ad creative format cannot be detected. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_CREATIVE_FORMAT_FALLBACK
@NonNull public static final int DEFAULT_CREATIVE_FORMAT_FALLBACKDefault content type to use as fallback when ad creative format cannot be detected.Most ad creatives are MP4 files.
- See Also:
-
creativeFormatFallback
public volatile int creativeFormatFallbackContent 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 creativesSdkConsts.CONTENT_TYPE_DASH- For DASH ad creativesSdkConsts.CONTENT_TYPE_UNKNOWN- Disable fallback
-
-
Constructor Details
-
AdSettings
public AdSettings()Default constructor
-