BMPAdItem

Objective-C


@interface BMPAdItem : NSObject <BMPJsonable, NSCopying>

Swift

class AdItem : NSObject, BMPJsonable, NSCopying

Represents an ad which can be scheduled in the play.

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<BMPAdSource *> *sources

    Swift

    var sources: [AdSource] { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *position

    Swift

    var position: String? { get }
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithAdSources:(NSArray<BMPAdSource *> *)sources atPosition:(nullable NSString *)position NS_DESIGNATED_INITIALIZER;

    Swift

    init(adSources sources: [AdSource], atPosition position: String?)
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithAdSources:(NSArray<BMPAdSource *> *)sources;

    Swift

    convenience init(adSources sources: [AdSource])