summaryrefslogtreecommitdiff
path: root/Example Apps/Example Swift
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2021-02-24 11:32:45 -0500
committerJoel Fischer <joeljfischer@gmail.com>2021-02-24 11:32:45 -0500
commitf79292feac9801f90e2b28b426aa459b72681f33 (patch)
treeab88f88ef3bb60476fed15a28101b958c9f1687c /Example Apps/Example Swift
parent72f3c74ad1d99ab175405f95ceb3b041a58d1499 (diff)
downloadsdl_ios-f79292feac9801f90e2b28b426aa459b72681f33.tar.gz
Implement system info delegate in example apps
* Fix swift version of system info delegate * Update RAIR system info log * Add description method for System Info
Diffstat (limited to 'Example Apps/Example Swift')
-rw-r--r--Example Apps/Example Swift/ProxyManager.swift10
1 files changed, 9 insertions, 1 deletions
diff --git a/Example Apps/Example Swift/ProxyManager.swift b/Example Apps/Example Swift/ProxyManager.swift
index 8a53e7c76..5fb0fda22 100644
--- a/Example Apps/Example Swift/ProxyManager.swift
+++ b/Example Apps/Example Swift/ProxyManager.swift
@@ -146,7 +146,7 @@ private extension ProxyManager {
// MARK: - SDLManagerDelegate
extension ProxyManager: SDLManagerDelegate {
- /// Called when the connection beween this app and the module has closed.
+ /// Called when the connection between this app and the module has closed.
func managerDidDisconnect() {
if delegate?.proxyState != .some(.stopped) {
delegate?.didChangeProxyState(ProxyState.searching)
@@ -234,6 +234,14 @@ extension ProxyManager: SDLManagerDelegate {
return update
}
+
+ /// Called when connected module information becomes available
+ /// - Parameter systemInfo: The connected module's information
+ /// - Returns: True to continue connecting, false to disconnect immediately
+ func didReceive(systemInfo: SDLSystemInfo) -> Bool {
+ SDLLog.d("Example app got system info: \(systemInfo)")
+ return true
+ }
}
// MARK: - SDL UI