VerizonMedia
@available(*, deprecated, message: "This protocol will be removed with the next major release.")
public protocol VerizonMedia : EventDispatcherProtocol
The Verizon Media API.
-
The Verizon Media SSAI API.
Declaration
Swift
var ads: VerizonMediaAds { get } -
Adds the given event listener of the given
VerizonMediaResponseEventType.Remark
When attaching a listener on the wrong object the application will crash.
Declaration
Swift
func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocolParameters
typeVerizonMediaEventType of the added event listener.
listenerClosure called when event is dispatched.
Return Value
EventListener that can be removed.
-
Removes the given event listener of the given
VerizonMediaResponseEventType.Declaration
Swift
func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameters
typeVerizonMediaEventType of the removed event listener.
listenerEventListener object that has been return on addEventListener.
VerizonMedia Protocol Reference