Yospace_Objc
@available(*, deprecated, message: "This type is no longer available and will be removed in a future version.")
@objc(THEOplayerYospace)
public protocol Yospace_Objc
API for the Yospace pre-integration.
-
Adds the event listener of the given
EventType.Remark
When attaching a listener on the wrong object the application will crash.
Declaration
Swift
@discardableResult func addEventListener(type: String, listener: @escaping (YospaceEvent) -> ()) -> EventListenerParameters
typeEventTypeof the added event listener. SeeYospaceEventTypesfor possible values.listenerClosure called when event is dispatched.
Return Value
The newly added
EventListener. -
Removes the event listener for the given
EventType.Declaration
Swift
func removeEventListener(type: String, listener: EventListener)Parameters
typeEventTypeof the event listener to be removed. SeeYospaceEventTypesfor possible values.listenerEventListener
which was added byaddEventListener(…)`.
Yospace_Objc Protocol Reference