INOmidFriendlyObstruction

Objective-C

@interface INOmidFriendlyObstruction : NSObject

Swift

class INOmidFriendlyObstruction : NSObject

Class that defines a friendly obstruction.

  • The view to be excluded from all ad session viewability calculations.

    Declaration

    Objective-C

    @property (nonatomic) UIView *view;

    Swift

    unowned(unsafe) var view: UIView! { get set }
  • The purpose of why this obstruction was necessary.

    Declaration

    Objective-C

    @property (nonatomic) INOmidFriendlyObstructionPurpose purpose;

    Swift

    var purpose: INOmidFriendlyObstructionPurpose { get set }
  • An explanation for why this obstruction is part of the ad experience if not already obvious from the purpose. Can be nil. If not nil, must be 50 characters or less and only contain characers A-z, 0-9, or spaces.

    Declaration

    Objective-C

    @property (copy, nonatomic) NSString *detailedReason;

    Swift

    var detailedReason: String! { get set }
  • Initialise with the view and purpose of this obstruction.

    Declaration

    Objective-C

    - (instancetype)initWithView:(UIView *)view
                         purpose:(INOmidFriendlyObstructionPurpose)purpose;

    Swift

    init!(view: UIView!, purpose: INOmidFriendlyObstructionPurpose)
  • Initialise with the view, purpose and reason describing this obstruction.

    Declaration

    Objective-C

    - (instancetype)initWithView:(UIView *)view
                         purpose:(INOmidFriendlyObstructionPurpose)purpose
                  detailedReason:(NSString *)detailedReason;

    Swift

    init!(view: UIView!, purpose: INOmidFriendlyObstructionPurpose, detailedReason: String!)