CanIOSharedSpaceDelegate
Protocol Overview
This protocol is conformed to by CanIOSharedSpace's delegate. This protocol is used to notify your app of peers that have joined the space, or accepted/rejected invitation to join the space, and about changes in the space's data objects.
Protocol Methods
- (void)sharedSpace:(CanIOSharedSpace *)space peerDidAcceptInvitation:(CanIOPeer *)peer;
- (void)sharedSpace:(CanIOSharedSpace *)space peerDidRejectInvitation:(CanIOPeer *)peer;
These methods are called when another peer has accepted or rejected an invitation to join the space.
- (void)sharedSpace:(CanIOSharedSpace *)space peerDidJoin:(CanIOPeer *)peer;
This method is called when a new peer has joined the space.
- (void)sharedSpace:(CanIOSharedSpace *)space didUpdateDataForObject:(CanIOSharedObject *)object atPath:(NSString *)path;
This method is called when one of the space's shared objects has been updated by one of the peers in the space. The CanIOSharedObject references the changes object, and the path contains a path to the element that has been changed.