JWFriendlyObstructionManager
@objc
public protocol JWFriendlyObstructionManager
This manager provides methods to modify the existing list of friendly obstructions.
-
A collection of registered obstructions.
Declaration
Swift
var obstructions: [JWFriendlyObstruction] { get }
-
Adds the given obstructions.
Declaration
Swift
func register(_ obstructions: [JWFriendlyObstruction])
Parameters
obstructions
An array of friendly ad obstructions to be added.
-
Removes the given obstructions.
Declaration
Swift
func deregister(_ obstructions: [JWFriendlyObstruction])
Parameters
obstructions
An array of friendly ad obstructions that will be removed.
-
Removes all obstructions from the manager.
Declaration
Swift
func deregisterAllObstructions()