Lightstreamer tvOS Client
2.0.1
Native tvOS Client library for Lightstreamer
|
Protocol to be implemented to receive LSLightstreamerClient events comprehending notifications of connection activity and errors. More...
#import <LSClientDelegate.h>
Instance Methods | |
(void) | - clientDidRemoveDelegate: |
Event handler that receives a notification when the LSClientDelegate instance is removed from a LSLightstreamerClient through removeDelegate: (LSLightstreamerClient). More... | |
(void) | - clientDidAddDelegate: |
Event handler that receives a notification when the LSClientDelegate instance is added to a LSLightstreamerClient through addDelegate: (LSLightstreamerClient). More... | |
(void) | - client:didReceiveServerError:withMessage: |
Event handler that is called when the Server notifies a refusal on the client attempt to open a new connection or the interruption of a streaming connection. More... | |
(void) | - client:didChangeStatus: |
Event handler that receives a notification each time the LSLightstreamerClient status has changed. More... | |
(void) | - client:didChangeProperty: |
Event handler that receives a notification each time the value of a property of LSLightstreamerClient::connectionDetails or LSLightstreamerClient::connectionOptions is changed. More... | |
Protocol to be implemented to receive LSLightstreamerClient events comprehending notifications of connection activity and errors.
Events for these delegates are dispatched by a different thread than the one that generates them. This means that, upon reception of an event, it is possible that the internal state of the client has changed. On the other hand, all the notifications for a single LSLightstreamerClient, including notifications to LSClientDelegate s, LSSubscriptionDelegate s and LSClientMessageDelegate s will be dispatched by the same thread.
|
optional |
Event handler that receives a notification each time the value of a property of LSLightstreamerClient::connectionDetails or LSLightstreamerClient::connectionOptions is changed.
Properties of these objects can be modified by direct calls to them or by server sent events.
client | the LSLightstreamerClient instance. |
property | the name of the changed property. Possible values are:
|
|
optional |
Event handler that receives a notification each time the LSLightstreamerClient status has changed.
The status changes may be originated either by custom actions (e.g. by calling disconnect (LSLightstreamerClient)) or by internal actions. The normal cases are the following:
Possible special cases are the following:
By setting a custom handler it is possible to perform actions related to connection and disconnection occurrences. Note that connect (LSLightstreamerClient) and disconnect (LSLightstreamerClient), as any other method, can be issued directly from within a handler.
client | the LSLightstreamerClient instance. |
status | the new status. It can be one of the following values:
|
|
optional |
Event handler that is called when the Server notifies a refusal on the client attempt to open a new connection or the interruption of a streaming connection.
In both cases, the client:didChangeStatus: event handler has already been invoked with a "DISCONNECTED" status and no recovery attempt has been performed. By setting a custom handler, however, it is possible to override this and perform custom recovery actions.
client | the LSLightstreamerClient instance. |
errorCode | the error code. It can be one of the following:
|
errorMessage | the description of the error as sent by the Server. |
|
optional |
Event handler that receives a notification when the LSClientDelegate instance is added to a LSLightstreamerClient through addDelegate: (LSLightstreamerClient).
This is the first event to be fired on the delegate.
client | the LSLightstreamerClient this instance was added to. |
|
optional |
Event handler that receives a notification when the LSClientDelegate instance is removed from a LSLightstreamerClient through removeDelegate: (LSLightstreamerClient).
This is the last event to be fired on the delegate.
client | the LSLightstreamerClient this instance was removed from. |