CanIOSharedSpaceInvitation

Class overview

When a peer invites you to join a space, a CanIOSharedSpaceInvitation instance will be sent to your through CanIOSharedSpaceManagerDelegate didReceiveSharedSpaceInvitation: method. This class should be used to accept or reject the invitation.

Properties

@property (nonatomic) CanIOPeer *peer;

The peer from which the invitation originated.

@property (nonatomic, copy) NSString *spaceUUID;

The UUID of the space to which the local peer is being invited.

Methods

- (CanIOSharedSpace *)accept;
- (void)reject;

Use these methods to accept or reject the invitation. If you accept the invitation, the accept method returns a reference to the newly joined space.