VerizonMediaAdArray
public class VerizonMediaAdArray : EventedArray<VerizonMediaAd>
An object that contains an array of VerizonMediaAd
.
-
Adds the event listener of the given
EventType
.Remark
When attaching a listener on the wrong object, the application will crash.
Declaration
Swift
override public func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocol
Parameters
type
EventType
of the added event listener. SeeVerizonMediaAdArrayEventTypes
for possible values.listener
Closure called when event is dispatched.
Return Value
The newly added
EventListener
. -
Removes the event listener of the given
EventType
.Declaration
Swift
override public func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocol
Parameters
type
EventType
of the event listener to be removed. SeeVerizonMediaAdArrayEventTypes
for possible values.listener
EventListener
which was added byaddEventListener(...)