CanIOSharedSpaceManagerDelegate

Protocol Overview

This protocol is conformed to by CanIOSharedSpaceManager's delegate. This protocol is used to notify your app about the result of the local peer's attempts to join other spaces, and about other peers sending, accepting and rejecting invitation to join spaces.

Methods

- (void)sharedSpaceManager:(CanIOSharedSpaceManager *)manager didReceiveSharedSpaceInvitation:(CanIOSharedSpaceInvitation *)invitation;

Called when the local peer receives an invitation to join a shared space. Use the provided CanIOSharedSpaceInvitation object to accept or reject the invitation.

- (void)sharedSpaceManager:(CanIOSharedSpaceManager *)manager peer:(CanIOPeer *)peer didAcceptInvitationToSharedSpace:(CanIOSharedSpace *)space;
- (void)sharedSpaceManager:(CanIOSharedSpaceManager *)manager peer:(CanIOPeer *)peer didRejectInvitationToSharedSpace:(CanIOSharedSpace *)space;

Called when a peer accepts or rejects an invitation to join a space which your local peer has sent them.

- (void)sharedSpaceManager:(CanIOSharedSpaceManager *)manager didJoinSpace:(CanIOSharedSpace *)space;
- (void)sharedSpaceManager:(CanIOSharedSpaceManager *)manager failedToJoinSpaceWithUUID:(NSString *)UUID;

Called after your local peer has attempted to join a space, in case joining the space was successful or had failed. In case joining the space was successful, a reference to the newly joined space will be included with the call.