GCKGenericChannel Class Reference

A generic GCKCastChannel implementation, suitable for use when subclassing is not desired. More...

#import <GCKGenericChannel.h>

+ Inheritance diagram for GCKGenericChannel:

Instance Methods

(instancetype) - initWithNamespace:
 Designated initializer. More...
 
- Instance Methods inherited from GCKCastChannel
(instancetype) - NS_UNAVAILABLE
 Default initializer is not available. More...
 
(void) - didReceiveTextMessage:
 Called when a text message has been received on this channel. More...
 
(BOOL) - sendTextMessage:error:
 Sends a text message on this channel. More...
 
(NSInteger) - generateRequestID
 Generates a request ID for a new message. More...
 
(NSNumber *GCK_NULLABLE_TYPE) - generateRequestNumber
 A convenience method which wraps the result of generateRequestID in an NSNumber. More...
 
(void) - didConnect
 Called when this channel has been connected, indicating that messages can now be exchanged with the Cast device over this channel. More...
 
(void) - didDisconnect
 Called when this channel has been disconnected, indicating that messages can no longer be exchanged with the Cast device over this channel. More...
 
(void) - didChangeWritableState:
 Called when the writable state of this channel has changed. More...
 

Properties

id< GCKGenericChannelDelegate > delegate
 The delegate for receiving notifications about changes in the channel's state. More...
 
- Properties inherited from GCKCastChannel
NSString * protocolNamespace
 The channel's namespace. More...
 
BOOL isConnected
 A flag indicating whether this channel is currently connected. More...
 
BOOL isWritable
 A flag indicating whether this channel is currently writable. More...
 

Detailed Description

A generic GCKCastChannel implementation, suitable for use when subclassing is not desired.

GCKGenericChannel forwards message and connectivity events to its delegate, and has no processing logic of its own.

See GCKGenericChannelDelegate for the delegate protocol.

Method Documentation

- (instancetype) initWithNamespace: (NSString *)  NS_DESIGNATED_INITIALIZER

Designated initializer.

Parameters
protocolNamespaceThe namespace for this channel. This namespace must be unique across all channels used by a given application.

Implements GCKCastChannel.

Property Documentation

- (id<GCKGenericChannelDelegate>) delegate
readwritenonatomicweak

The delegate for receiving notifications about changes in the channel's state.


The documentation for this class was generated from the following file: