JMSDK iOS
v2.4.0
API文档
|
账号类 更多...
#import <JCAccount.h>
构造函数 | |
(void) | - destroy |
销毁 JCAccount 实例 更多... | |
(void) | - addCallback: |
添加回调 更多... | |
(void) | - removeCallback: |
删除回调 更多... | |
(int) | - queryAccount:accountType: |
查询账号是否已被注册,结果通过 onQueryAccount 通知 更多... | |
(int) | - requestAuthCode:accountType:account:templates: |
请求业务验证码,结果通过 onRequestAuthCode 通知 更多... | |
(int) | - registerAccount:authCode:account:password: |
注册账号,结果通过 onRegister 通知 更多... | |
(int) | - resetPassword:authCode:account:password: |
重置密码,在登录后调用,结果通过 onResetPassword 通知 更多... | |
(int) | - changePassword:newPassword: |
修改密码,在登录后调用,结果通过 onChangePassword 通知 更多... | |
(int) | - fetchPassword:authCode:account: |
找回密码,结果通过 onFetchPassword 通知 更多... | |
(int) | - setAccountProperty:value: |
设置账号自定义属性,结果通过 onSetAccountProperty 通知 更多... | |
(int) | - getAccountProperty: |
获取账号自定义属性,结果通过 onGetAccountProperty 通知 更多... | |
类方法 | |
(JCAccount *) | + create: |
创建 JCAccount 实例 更多... | |
账号类
- (void) addCallback: | (id< JCAccountCallback >) | callback |
添加回调
callback | JCAccountCallback 接口对象 |
- (int) changePassword: | (NSString *) | oldPassword | |
newPassword: | (NSString *) | newPassword | |
修改密码,在登录后调用,结果通过 onChangePassword 通知
oldPassword | 旧密码 |
newPassword | 新密码 |
+ (JCAccount*) create: | (id< JCAccountCallback >) | callback |
- (void) destroy |
销毁 JCAccount 实例
- (int) fetchPassword: | (NSString *) | accountType | |
authCode: | (NSString *) | authCode | |
account: | (NSString *) | account | |
找回密码,结果通过 onFetchPassword 通知
accountType | 账户类型 |
authCode | 验证码 |
account | 账户 |
- (int) getAccountProperty: | (NSString *) | key |
获取账号自定义属性,结果通过 onGetAccountProperty 通知
key | 设置时的key值 |
- (int) queryAccount: | (NSString *) | account | |
accountType: | (NSString *) | accountType | |
查询账号是否已被注册,结果通过 onQueryAccount 通知
account | 账户 |
accountType | 账户类型 |
- (int) registerAccount: | (NSString *) | accountType | |
authCode: | (NSString *) | authCode | |
account: | (NSString *) | account | |
password: | (NSString *) | password | |
注册账号,结果通过 onRegister 通知
accountType | 账户类型 |
authCode | 验证码 |
account | 账户 |
password | 密码 |
- (void) removeCallback: | (id< JCAccountCallback >) | callback |
删除回调
callback | JCAccountCallback 接口对象 |
- (int) requestAuthCode: | (JCRequestAuthCodeType) | requestAuthCodeType | |
accountType: | (NSString *) | accountType | |
account: | (NSString *) | account | |
templates: | (NSString *) | templates | |
请求业务验证码,结果通过 onRequestAuthCode 通知
requestAuthCodeType | 业务类型 |
accountType | 账户类型 |
account | 账户 |
templates | 发送内容模板 例: 您请求注册的验证码为s |
- (int) resetPassword: | (NSString *) | accountType | |
authCode: | (NSString *) | authCode | |
account: | (NSString *) | account | |
password: | (NSString *) | password | |
重置密码,在登录后调用,结果通过 onResetPassword 通知
accountType | 账户类型 |
authCode | 验证码 |
account | 账户 |
password | 密码 |
- (int) setAccountProperty: | (NSString *) | key | |
value: | (NSString *) | value | |
设置账号自定义属性,结果通过 onSetAccountProperty 通知
key | 自定义 |
value | 自定义 |