Callback Integration
To receive event logs, integrate the PlaybackEvent callback function in the Player SDK by attaching the didReceiveOnEvent
handler:
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
...
UniLogger.shared.add(listener: self)
...
return true
}
extension AppDelegate: UniLoggerListener {
func logEvent(_ event: UniLogEvent) {
print("Play log name=%@ properties=%@", event.name.rawValue, event.properties)
}
}