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)didStartReconnection

Declared In

SBDMain.h

– didSucceedReconnection

Invoked when reconnection is succeeded.

- (void)didSucceedReconnection

Declared In

SBDMain.h

– didFailReconnection

Invoked when reconnection is failed.

- (void)didFailReconnection

Declared In

SBDMain.h

– didCancelReconnection

Invoked when reconnection is cancelled.

- (void)didCancelReconnection

Declared In

SBDMain.h