AI-generated Key Takeaways
- 
          IMAFriendlyObstruction is an obstruction marked as "friendly" for viewability measurement. 
- 
          It contains properties for the obstructing view, the purpose of the obstruction, and an optional detailed reason. 
- 
          The detailed reason, if provided, must be 50 characters or less and follow IAB standards for allowed characters. 
- 
          Instances of IMAFriendlyObstruction are initialized with the obstructing view, purpose, and an optional detailed reason. 
IMAFriendlyObstruction
@interface IMAFriendlyObstruction : NSObjectAn obstruction that is marked as “friendly” for viewability measurement purposes.
- 
                  
                  The view causing the obstruction. DeclarationSwift var view: UIView { get }Objective-C @property (nonatomic, readonly) UIView *_Nonnull view;
- 
                  
                  The purpose for registering the obstruction as friendly. DeclarationSwift var purpose: IMAFriendlyObstructionPurpose { get }Objective-C @property (nonatomic, readonly) IMAFriendlyObstructionPurpose purpose;
- 
                  
                  Optional, detailed reasoning for registering this obstruction as friendly. If the detailedReasonis not null, it must follow the IAB standard by being 50 characters or less and only containing charactersA-z,0-9, or spaces.DeclarationSwift var detailedReason: String? { get }Objective-C @property (nonatomic, readonly, nullable) NSString *detailedReason;
- 
                  
                  Initializes a friendly obstruction. DeclarationSwift init(view: UIView, purpose: IMAFriendlyObstructionPurpose, detailedReason: String?)Objective-C - (nonnull instancetype)initWithView:(nonnull UIView *)view purpose:(IMAFriendlyObstructionPurpose)purpose detailedReason:(nullable NSString *)detailedReason;ParametersviewThe view causing the obstruction. purposeThe purpose for registering the obstruction as friendly. detailedReasonOptional, detailed reasoning for registering this obstruction as friendly. Return ValueA new IMAFriendlyObstruction instance