SFS2X Objective-C API
1.7.13
iOS / macOS / tvOS
|
#import <LoginRequest.h>
Inherits BaseRequest.
Instance Methods | |
(id) | - initWithUserName:password:zoneName:params: |
Class Methods | |
(id) | + requestWithUserName:password:zoneName:params: |
(id) | + request |
Properties | |
NSString * | zoneName |
NSString * | userName |
NSString * | password |
id< ISFSObject > | params |
Join one of the Zones in the Server.
Each Zone represents a different application running independently In order to join a Zone a user name and password are usually required. If the Zone allows guest users, user name and password are not needed and a guest name will be created on the server side If the Zone uses a server side extension to handle the login, you can also send a custom SFSObject with any extra parameters.
+ (id) requestWithUserName: | (NSString *) | userName | |
password: | (NSString *) | password | |
zoneName: | (NSString *) | zoneName | |
params: | (id <ISFSObject>) | params | |
userName | the user name. |
password | the password. |
zoneName | the name of an existing Zone in the server (case sensitive, 'SimpleChat' != 'simplechat'). If no Zone is specified the SmartFox.config.zone parameter will be used. |
params | the custom parameters (optional, if you use an Extension on server side to handle the login) |