|
SFS2X Objective-C API
1.7.13
iOS / macOS / tvOS
|
#import <SFSInvitation.h>
Inherits NSObject, and <Invitation>.
Instance Methods | |
| (id) | - initWithInviter:invitee:secondsForAnswer:params: |
Class Methods | |
| (id) | + invitationWithInviter:invitee:secondsForAnswer:params: |
| (id) | + invitationWithInviter:invitee: |
Protected Attributes | |
| NSInteger | _id |
| id< User > | _inviter |
| id< User > | _invitee |
| NSInteger | _secondsForAnswer |
| id< ISFSObject > | _params |
Properties | |
| NSInteger | id |
| id< User > | inviter |
| id< User > | invitee |
| NSInteger | secondsForAnswer |
| id< ISFSObject > | params |
An Invitation object provides the ability to send a generic invitation for a specific event going on in your application, be it a game, visiting a personal Room or another location of the virtual world etc...
The SFS2X Invitation Manager is very simple to use. All you need to provide is:
| - (id) initWithInviter: | (id <User>) | inviter | |
| invitee: | (id <User>) | invitee | |
| secondsForAnswer: | (NSInteger) | secondsForAnswer | |
| params: | (id <ISFSObject>) | params | |
| inviter | the User that sends the Invitation |
| invitee | the User that receives the Invitation |
| secondsForAnswer | the number of seconds allowed for the Invitee to reply (recommended range: 15-40 seconds) |
| params | custom params to send with the invitation |
| inviter | the User that sends the Invitation |
| invitee | the User that receives the Invitation |
| + (id) invitationWithInviter: | (id <User>) | inviter | |
| invitee: | (id <User>) | invitee | |
| secondsForAnswer: | (NSInteger) | secondsForAnswer | |
| params: | (id <ISFSObject>) | params | |
| inviter | the User that sends the Invitation |
| invitee | the User that receives the Invitation |
| secondsForAnswer | the number of seconds allowed for the Invitee to reply (recommended range: 15-40 seconds) |
| params | custom params to send with the invitation |
|
readwritenonatomicassign |
The id of the invitation
|
readnonatomicweak |
A custom set of parameters. Can be used to provide a message for the invitation and any other relevant data
|
readnonatomicassign |
The amount of time (seconds) allowed to reply to the invitation