StreamLink for iOS
8.0.0.233163-35883203
|
Defines a channel listener that wraps an SLChannelListener so that the callbacks are returned on the main GUI thread. More...
Instance Methods | |
(id) | - initWithSubscriptionListener: |
Creates an instance of SLChannelListenerWrapper that wraps the supplied SLChannelListener. More... | |
Class Methods | |
(SLChannelListenerWrapper *) | + wrapListener: |
Convenience static method that wraps the supplied SLChannelListener. More... | |
Protected Attributes | |
id< SLChannelListener > | wrappedListener |
Defines a channel listener that wraps an SLChannelListener so that the callbacks are returned on the main GUI thread.
You can pass an SLChannelListenerWrapper to [SLStreamLink createChannel] in place of an SLChannelListener. This allows you to update the GUI from within the wrapped SLChannelListener callback methods, without having to write boiler-plate code for accessing the GUI thread.
- (id) initWithSubscriptionListener: | (id< SLChannelListener >) | listener |
Creates an instance of SLChannelListenerWrapper that wraps the supplied SLChannelListener.
listener | The SLChannelListener to be wrapped. Once wrapped, all callbacks on this listener are on the main GUI thread. |
+ (SLChannelListenerWrapper*) wrapListener: | (id< SLChannelListener >) | listener |
Convenience static method that wraps the supplied SLChannelListener.
listener | The SLChannelListener to be wrapped. Once wrapped, all callbacks on this listener are on the main GUI thread. |
|
readwritenonatomicretainprotected |