AI-generated Key Takeaways
-
IMAFriendlyObstructionPurpose
defines the reasons an obstruction within an ad view is considered "friendly" and should not cause an ad error. -
These purposes include media controls, close ad button, elements not visible to the user, and a general "other" category for flexibility.
-
Each purpose is represented by an enum case with an integer raw value for programmatic use.
-
Developers can leverage these purposes to ensure interactive elements or hidden UI components in their ads do not trigger unintended obstruction errors.
IMAFriendlyObstructionPurpose
enum IMAFriendlyObstructionPurpose : NSUInteger {}
A list of purposes for which an obstruction would be registered as friendly.
-
Undocumented
Declaration
Swift
case mediaControls = 0
Objective-C
IMAFriendlyObstructionPurposeMediaControls
-
Undocumented
Declaration
Swift
case closeAd = 1
Objective-C
IMAFriendlyObstructionPurposeCloseAd
-
Undocumented
Declaration
Swift
case notVisible = 2
Objective-C
IMAFriendlyObstructionPurposeNotVisible
-
Undocumented
Declaration
Swift
case other = 3
Objective-C
IMAFriendlyObstructionPurposeOther