MRInvite Class Reference
Inherits from | NSObject |
---|---|
Declared in | MRInvite.h |
+ getAllInvitesWithSession:completion:
Session to authenticate with
+ (NSOperation *)getAllInvitesWithSession:(MRSharingSession *)session completion:(void ( ^ _Nullable ) ( NSArray<MRInvite*> *_Nullable invites , NSError *_Nullable error ))completion
Parameters
session |
Session to authenticate with |
---|---|
completion |
Block to be called upon completion with an array of MRInvite or an error |
Declared In
MRInvite.h
+ deleteAllInvitesWithSession:completion:
Session to authenticate with
+ (NSOperation *)deleteAllInvitesWithSession:(MRSharingSession *)session completion:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completion
Parameters
session |
Session to authenticate with |
---|---|
completion |
Block to be called upon completion with an error if one occurred |
Declared In
MRInvite.h
+ createInviteWithSession:completion:
Session to authenticate with
+ (NSOperation *)createInviteWithSession:(MRSharingSession *)session completion:(void ( ^ _Nullable ) ( MRInvite *_Nullable invite , NSError *_Nullable error ))completion
Parameters
session |
Session to authenticate with |
---|---|
completion |
Block to be called upon completion with an MRInvite or an error |
Declared In
MRInvite.h
+ acceptInviteWithURL:session:completion:
URL of the invite to accept
+ (nullable NSOperation *)acceptInviteWithURL:(NSURL *)url session:(MRSharingSession *)session completion:(void ( ^ _Nullable ) ( MRFriend *_Nullable friend_ , NSError *_Nullable error ))completion
Parameters
url |
URL of the invite to accept |
---|---|
session |
Session to authenticate with |
completion |
Block to be called upon completion with an MRInvite or an error |
Declared In
MRInvite.h
+ acceptInviteWithKey:session:completion:
Key of the invite to accept
+ (NSOperation *)acceptInviteWithKey:(MREditorKey *)inviteKey session:(MRSharingSession *)session completion:(void ( ^ _Nullable ) ( MRFriend *_Nullable friend_ , NSError *_Nullable error ))completion
Parameters
inviteKey |
Key of the invite to accept |
---|---|
session |
Session to authenticate with |
completion |
Block to be called upon completion with a MRFriend or an error |
Declared In
MRInvite.h
– deleteWithSession:completion:
Session to authenticate with
- (NSOperation *)deleteWithSession:(MRSharingSession *)session completion:(void ( ^ _Nullable ) ( NSError *_Nullable error ))completion
Parameters
session |
Session to authenticate with |
---|---|
completion |
Block to be called upon completion with a MRFriend or an error |
Declared In
MRInvite.h
key
The identifier of the inivte.
@property (nonatomic, strong) MREditorKey *key
Declared In
MRInvite.h
friendKey
Key of the user that created the invite.
@property (nonatomic, strong) MREditorKey *friendKey
Declared In
MRInvite.h
shareURL
URL to the invite for sharing.
@property (nonatomic, strong) NSURL *shareURL
Declared In
MRInvite.h