MobileInstreamAds

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

MobileInstreamAds manages settings of the YandexMobileAdsInstream library.

  1. setControlsEnabled(_:)
  2. setDiscardAdGroupOnSkipEnabled(_:)

setControlsEnabled(_:)

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.

enabled

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

setDiscardAdGroupOnSkipEnabled(_:)

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.

enabled

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