GoogleInteractiveMediaAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
IMAFriendlyObstructionPurpose
enum IMAFriendlyObstructionPurpose : NSUInteger {}
A list of purposes for which an obstruction would be registered as friendly.
-
Declaration
Swift
case mediaControls = 0
Objective-C
IMAFriendlyObstructionPurposeMediaControls
-
Declaration
Objective-C
IMAFriendlyObstructionPurposeCloseAd
-
Declaration
Swift
case notVisible = 2
Objective-C
IMAFriendlyObstructionPurposeNotVisible
-
Declaration
Objective-C
IMAFriendlyObstructionPurposeOther
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eIMAFriendlyObstructionPurpose\u003c/code\u003e is an enumeration defining purposes for registering an obstruction as "friendly" within an ad view.\u003c/p\u003e\n"],["\u003cp\u003eIt includes options for media controls, close ad button, invisible elements, and a general "other" purpose.\u003c/p\u003e\n"],["\u003cp\u003eEach purpose is represented by an integer value, starting from 0 for \u003ccode\u003emediaControls\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe enumeration is intended for use with Google's Interactive Media Ads (IMA) SDK.\u003c/p\u003e\n"],["\u003cp\u003eAll cases are currently undocumented, requiring further investigation for specific usage details.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMAFriendlyObstructionPurpose\n=============================\n\n enum IMAFriendlyObstructionPurpose : NSUInteger {}\n\nA list of purposes for which an obstruction would be registered as friendly.\n- `\n ``\n ``\n `\n\n ### [IMAFriendlyObstructionPurposeMediaControls](#/c:@E@IMAFriendlyObstructionPurpose@IMAFriendlyObstructionPurposeMediaControls)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n case mediaControls = 0\n\n Objective-C \n\n IMAFriendlyObstructionPurposeMediaControls\n\n- `\n ``\n ``\n `\n\n ### [IMAFriendlyObstructionPurposeCloseAd](#/c:@E@IMAFriendlyObstructionPurpose@IMAFriendlyObstructionPurposeCloseAd)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n case closeAd = 1\n\n Objective-C \n\n IMAFriendlyObstructionPurposeCloseAd\n\n- `\n ``\n ``\n `\n\n ### [IMAFriendlyObstructionPurposeNotVisible](#/c:@E@IMAFriendlyObstructionPurpose@IMAFriendlyObstructionPurposeNotVisible)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n case notVisible = 2\n\n Objective-C \n\n IMAFriendlyObstructionPurposeNotVisible\n\n- `\n ``\n ``\n `\n\n ### [IMAFriendlyObstructionPurposeOther](#/c:@E@IMAFriendlyObstructionPurpose@IMAFriendlyObstructionPurposeOther)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n case other = 3\n\n Objective-C \n\n IMAFriendlyObstructionPurposeOther"]]