SBBBridgeErrorUIDelegate Protocol Reference

Conforms to NSObject
Declared in SBBBridgeErrorUIDelegate.h

Overview

If the error UI delegate conforms to this protocol then the methods included will be called as appropriate.

– handleUnsupportedAppVersionError:networkManager:

Method called when the Bridge services return an error code that this version of the app is no longer supported. If not implemented or returns @NO then the BridgeNetworkManager will just log the error to the console. In any case it will also pass the error through to the completion handler of the call that triggered the error. This method will only be called once per app launch.

- (BOOL)handleUnsupportedAppVersionError:(NSError *)error networkManager:(id<SBBNetworkManagerProtocol> _Nullable)networkManager

Return Value

@YES if the error has been handled by the delegate.

Declared In

SBBBridgeErrorUIDelegate.h

– handleUserNotConsentedError:sessionInfo:networkManager:

Method called when the Bridge services return an error code that the user has not consented. If not implemented or returns @NO then the BridgeNetworkManager will just log the error to the console. In any case it will also pass the error through to the completion handler of the call that triggered the error.

- (BOOL)handleUserNotConsentedError:(NSError *)error sessionInfo:(id)sessionInfo networkManager:(id<SBBNetworkManagerProtocol> _Nullable)networkManager

Return Value

@YES if the error has been handled by the delegate.

Discussion

The sessionInfo object will be of type SBBUserSessionInfo unless the UserSessionInfo type has been mapped in SBBObjectManager setupMappingForType:toClass:fieldToPropertyMappings:.

Declared In

SBBBridgeErrorUIDelegate.h