MobileInstreamAds

@objc(YMAMobileInstreamAds)
@objcMembers
public class MobileInstreamAds : NSObject

MobileInstreamAds manages settings of the YandexMobileAdsInstream library.

  • Indicates whether playback controls are enabled.

    Declaration

    Swift

    public static func setControlsEnabled(_ enabled: Bool)

    Parameters

    enabled

    If set to true, playback controls will be enabled, otherwise disabled. Default value is true.

  • Indicates wheather discard ad group on skip is enabled.

    Declaration

    Swift

    public static func setDiscardAdGroupOnSkipEnabled(_ enabled: Bool)

    Parameters

    enabled

    If set to true, ad break will be discarded on skip. Default value is false.