Observable
public protocol Observable
Observable
is an interface for a container of observers.
It allows sending notifications on certain events to all of the added observers.
We provide the implementation of this protocol: TomTomSDKCommon/ObservableHandler
.
Notify observers about some specific event.
Declaration
Swift
func notifyObservers(notificationAction: @escaping (Observer) -> ())
Parameters
notificationAction
|
Use the closure to define what event every observer will receive.
This method applies the |
Notify observers about some specific event.
Declaration
Swift
func notifyObservers(notificationAction: @escaping (Observer) -> (), completion: (() -> ())?)
Parameters
notificationAction
|
Use the closure to define what event every observer will receive.
This method applies the |
completion
|
Called when the |