SBDConnectionDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | SBDMain.h |
Overview
An object that adopts the SBDConnectionDelegate protocol is responsible for managing the connection statuses.
This delegate includes three statuses: reconnection start, reconnection succession, and reconnection failure.
The SBDConnectionDelegate can be added by
addConnectionDelegate:identifier: in SBDMain.
Every SBDConnectionDelegate method added will manage the statues.
Warning: If the object that adopts the SBDConnectionDelegate protocol is invalid, the delegate has to be removed by
the identifier via removeConnectionDelegateForIdentifier:
in SBDMain. If you miss this, it will cause the crash.
– didStartReconnection
Invoked when reconnection starts.
- (void)didStartReconnectionDeclared In
SBDMain.h
– didSucceedReconnection
Invoked when reconnection is succeeded.
- (void)didSucceedReconnectionDeclared In
SBDMain.h
– didFailReconnection
Invoked when reconnection is failed.
- (void)didFailReconnectionDeclared In
SBDMain.h
– didCancelReconnection
Invoked when reconnection is cancelled.
- (void)didCancelReconnectionDeclared In
SBDMain.h