![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingSmartUser.h>
Class Methods | |
(instancetype) | + sharedInstance |
Returns the singleton of the class. More... | |
(instancetype) | + sharedInstance |
Returns the singleton of the class. More... | |
(instancetype) | + sharedInstance |
Returns the singleton of the class. More... | |
(instancetype) | + sharedInstance |
Returns the singleton of the class. More... | |
Properties | |
NSString * | sid |
The session ID. More... | |
NSString * | uid |
The user ID. More... | |
NSString * | headIconUrl |
The avatar. More... | |
NSString * | nickname |
The nickname. More... | |
NSString * | userName |
The username. If the account is registered with a mobile phone number, the value is set to the mobile phone number. If the account is registered with an email, the value is set to the email. More... | |
NSString * | phoneNumber |
The mobile phone number. More... | |
NSString * | |
The email. More... | |
NSString * | countryCode |
The country code. For example, 86 means China, 1 means America. More... | |
BOOL | isLogin |
The login status. More... | |
NSString * | regionCode |
The region code of the current account. For example, AY means China, AZ means America, and EU means Europe. More... | |
NSDictionary * | domain |
The API domains of the current account region. More... | |
NSString * | timezoneId |
The timezone ID, such as Asia/Shanghai . More... | |
NSString * | partnerIdentity |
NSString * | mbHost |
The MQTT host. More... | |
NSString * | gwHost |
NSInteger | port |
The MQTT port. More... | |
BOOL | useSSL |
Specifies whether to enable SSL. More... | |
NSString * | quicHost |
The QUIC host. More... | |
NSInteger | quicPort |
The QUIC port. More... | |
BOOL | useQUIC |
Specifies whether to enable QUIC. More... | |
NSInteger | tempUnit |
The temperature unit. For example, 1 means °C and 2 means °F . More... | |
ThingRegType | regFrom |
The user registration type. More... | |
NSString * | snsNickname |
The nickname of the SNS account. More... | |
NSString * | ecode |
NSInteger | userType |
The user type. More... | |
NSDictionary * | extras |
Extra parameters. More... | |
NSString * | userAlias |
ThingSmartBleMeshModel * | meshModel |
ThingSmartBleMesh * | mesh |
Main:
For email and phone account, usually we need to send a verify code to continue the following steps.
For uid account, it is designed for developers who already has the account system for their own. The developer can register the uid account without any verification. So please keep your username/password in safe place.
Definition at line 97 of file ThingSmartUser.h.
- (void) bindEmail: | (NSString *) | ||
withCountryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
sId: | (NSString *) | sId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds an email.
The email. | |
countryCode | The country code. |
code | The verification Code. |
sId | The user session ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) bindEmail: | (NSString *) | ||
withCountryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
sId: | (NSString *) | sId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds an email.
The email. | |
countryCode | The country code. |
code | The verification Code. |
sId | The user session ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) bindEmail: | (NSString *) | ||
withCountryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
sId: | (NSString *) | sId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds an email.
The email. | |
countryCode | The country code. |
code | The verification Code. |
sId | The user session ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) bindEmail: | (NSString *) | ||
withCountryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
sId: | (NSString *) | sId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds an email.
The email. | |
countryCode | The country code. |
code | The verification Code. |
sId | The user session ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) cancelAccount: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Destroys an account. One week after the operation, all of the account information is permanently removed from the server. After login before the information is removed, the destroying request is canceled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) cancelAccount: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Destroys an account. One week after the operation, all of the account information is permanently removed from the server. After login before the information is removed, the destroying request is canceled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) cancelAccount: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Destroys an account. One week after the operation, all of the account information is permanently removed from the server. After login before the information is removed, the destroying request is canceled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) cancelAccount: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Destroys an account. One week after the operation, all of the account information is permanently removed from the server. After login before the information is removed, the destroying request is canceled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) cancelRequest |
Cancels the network request.
- (void) cancelRequest |
Cancels the network request.
- (void) cancelRequest |
Cancels the network request.
- (void) cancelRequest |
Cancels the network request.
- (void) changBindAccount: | (NSString *) | account | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Change to bind a mobile phone number or a email.
account | A mobile phone number or a email. |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) changBindAccount: | (NSString *) | account | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Change to bind a mobile phone number or a email.
account | A mobile phone number or a email. |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) changBindAccount: | (NSString *) | account | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Change to bind a mobile phone number or a email.
account | A mobile phone number or a email. |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) changBindAccount: | (NSString *) | account | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Change to bind a mobile phone number or a email.
account | A mobile phone number or a email. |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) checkCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
type: | (NSInteger) | type | |
success: | (ThingSuccessBOOL) | success | |
failure: | (ThingFailureError) | failure | |
Checks the verification code that is used to register, log in, or reset the password.
userName | The phone number or email address. |
region | To complete the required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
code | The verification code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the mobile phone password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) checkCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
type: | (NSInteger) | type | |
success: | (ThingSuccessBOOL) | success | |
failure: | (ThingFailureError) | failure | |
Checks the verification code that is used to register, log in, or reset the password.
userName | The phone number or email address. |
region | To complete the required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
code | The verification code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the mobile phone password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) checkCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
type: | (NSInteger) | type | |
success: | (ThingSuccessBOOL) | success | |
failure: | (ThingFailureError) | failure | |
Checks the verification code that is used to register, log in, or reset the password.
userName | The phone number or email address. |
region | To complete the required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
code | The verification code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the mobile phone password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) checkCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
type: | (NSInteger) | type | |
success: | (ThingSuccessBOOL) | success | |
failure: | (ThingFailureError) | failure | |
Checks the verification code that is used to register, log in, or reset the password.
userName | The phone number or email address. |
region | To complete the required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
code | The verification code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the mobile phone password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (BOOL) checkPasswordFormat: | (NSString *) | password | |
withPasswordRegularType: | (ThingPasswordRegularType) | regularType | |
Checks whether the password format meets the password strength requirements.
password | The password to be checked. |
regularType | The recommended password type. |
- (BOOL) checkPasswordFormat: | (NSString *) | password | |
withPasswordRegularType: | (ThingPasswordRegularType) | regularType | |
Checks whether the password format meets the password strength requirements.
password | The password to be checked. |
regularType | The recommended password type. |
- (BOOL) checkPasswordFormat: | (NSString *) | password | |
withPasswordRegularType: | (ThingPasswordRegularType) | regularType | |
Checks whether the password format meets the password strength requirements.
password | The password to be checked. |
regularType | The recommended password type. |
- (BOOL) checkPasswordFormat: | (NSString *) | password | |
withPasswordRegularType: | (ThingPasswordRegularType) | regularType | |
Checks whether the password format meets the password strength requirements.
password | The password to be checked. |
regularType | The recommended password type. |
- (void) clearUserInfo |
Clear user data.
- (void) clearUserInfo |
Clear user data.
- (void) clearUserInfo |
Clear user data.
- (void) clearUserInfo |
Clear user data.
- (void) deleteAnonymousAccountWithSuccess: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes an anonymous account.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) deleteAnonymousAccountWithSuccess: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes an anonymous account.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) deleteAnonymousAccountWithSuccess: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes an anonymous account.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) deleteAnonymousAccountWithSuccess: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes an anonymous account.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) didReceiveApplicationContext: | (watchos(2.0)) | API_AVAILABLE |
Receives ThingSmartUser context from iPhone.
applicationContext | The app context. |
Provided by category ThingSmartUser(WCSession).
- (void) didReceiveApplicationContext: | (watchos(2.0)) | API_AVAILABLE |
Receives ThingSmartUser context from iPhone.
applicationContext | The app context. |
Provided by category ThingSmartUser(WCSession).
- (void) didReceiveApplicationContext: | (watchos(2.0)) | API_AVAILABLE |
Receives ThingSmartUser context from iPhone.
applicationContext | The app context. |
Provided by category ThingSmartUser(WCSession).
- (void) didReceiveApplicationContext: | (watchos(2.0)) | API_AVAILABLE |
Receives ThingSmartUser context from iPhone.
applicationContext | The app context. |
Provided by category ThingSmartUser(WCSession).
- (NSDictionary *) getDefaultDomain |
Returns the default region.
Provided by category ThingSmartUser(Region).
- (NSDictionary *) getDefaultDomain |
Returns the default region.
Provided by category ThingSmartUser(Region).
- (NSDictionary *) getDefaultDomain |
Returns the default region.
Provided by category ThingSmartUser(Region).
- (NSDictionary *) getDefaultDomain |
Returns the default region.
Provided by category ThingSmartUser(Region).
- (NSString *) getDefaultRegionWithCountryCode: | (NSString *) | countryCode |
Returns the default region of the country code. For example,AY
indicates China, AZ
indicates America, and EU
indicates Europe.
countryCode | The country code. |
Provided by category ThingSmartUser(Region).
- (NSString *) getDefaultRegionWithCountryCode: | (NSString *) | countryCode |
Returns the default region of the country code. For example,AY
indicates China, AZ
indicates America, and EU
indicates Europe.
countryCode | The country code. |
Provided by category ThingSmartUser(Region).
- (NSString *) getDefaultRegionWithCountryCode: | (NSString *) | countryCode |
Returns the default region of the country code. For example,AY
indicates China, AZ
indicates America, and EU
indicates Europe.
countryCode | The country code. |
Provided by category ThingSmartUser(Region).
- (NSString *) getDefaultRegionWithCountryCode: | (NSString *) | countryCode |
Returns the default region of the country code. For example,AY
indicates China, AZ
indicates America, and EU
indicates Europe.
countryCode | The country code. |
Provided by category ThingSmartUser(Region).
- (void) getWhiteListWhoCanSendMobileCodeSuccess: | (ThingSuccessString) | success | |
failure: | (ThingFailureError) | failure | |
Returns the whitelist of regions to enable registration with mobile phone numbers.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) getWhiteListWhoCanSendMobileCodeSuccess: | (ThingSuccessString) | success | |
failure: | (ThingFailureError) | failure | |
Returns the whitelist of regions to enable registration with mobile phone numbers.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) getWhiteListWhoCanSendMobileCodeSuccess: | (ThingSuccessString) | success | |
failure: | (ThingFailureError) | failure | |
Returns the whitelist of regions to enable registration with mobile phone numbers.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) getWhiteListWhoCanSendMobileCodeSuccess: | (ThingSuccessString) | success | |
failure: | (ThingFailureError) | failure | |
Returns the whitelist of regions to enable registration with mobile phone numbers.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) login: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with a mobile phone verification code.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) login: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with a mobile phone verification code.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) login: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with a mobile phone verification code.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) login: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with a mobile phone verification code.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginByAuth2WithType: | (ThingSmartUserLoginType) | type | |
countryCode: | (NSString *) | countryCode | |
accessToken: | (NSString *) | accessToken | |
extraInfo: | (NSDictionary *) | extraInfo | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with a third-party account.
type | The login type, such as ThingSmartUserLoginTypeApple for Apple login. |
countryCode | The country code. |
accessToken | The access token for third-party account login. |
extraInfo | Additional parameters containing platform identifier and unique ID for cryptographic tokens. If type is ThingSmartUserLoginTypeJWT , also can use ThingSmartUserLoginJWTModel in params extraInfo. |
success | Called upon successful completion of the task. |
failure | Called when the task fails due to an error. Error domian is ThingSmartUserLoginErrorDomain , error code is ThingSmartUserLoginErrorCode |
- (void) loginByAuth2WithType: | (ThingSmartUserLoginType) | type | |
countryCode: | (NSString *) | countryCode | |
accessToken: | (NSString *) | accessToken | |
extraInfo: | (NSDictionary *) | extraInfo | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with a third-party account.
type | The login type, such as ThingSmartUserLoginTypeApple for Apple login. |
countryCode | The country code. |
accessToken | The access token for third-party account login. |
extraInfo | Additional parameters containing platform identifier and unique ID for cryptographic tokens. If type is ThingSmartUserLoginTypeJWT , also can use ThingSmartUserLoginJWTModel in params extraInfo. |
success | Called upon successful completion of the task. |
failure | Called when the task fails due to an error. Error domian is ThingSmartUserLoginErrorDomain , error code is ThingSmartUserLoginErrorCode |
- (void) loginByAuth2WithType: | (ThingSmartUserLoginType) | type | |
countryCode: | (NSString *) | countryCode | |
accessToken: | (NSString *) | accessToken | |
extraInfo: | (NSDictionary *) | extraInfo | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with a third-party account.
type | The login type, such as ThingSmartUserLoginTypeApple for Apple login. |
countryCode | The country code. |
accessToken | The access token for third-party account login. |
extraInfo | Additional parameters containing platform identifier and unique ID for cryptographic tokens. If type is ThingSmartUserLoginTypeJWT , also can use ThingSmartUserLoginJWTModel in params extraInfo. |
success | Called upon successful completion of the task. |
failure | Called when the task fails due to an error. Error domian is ThingSmartUserLoginErrorDomain , error code is ThingSmartUserLoginErrorCode |
- (void) loginByAuth2WithType: | (ThingSmartUserLoginType) | type | |
countryCode: | (NSString *) | countryCode | |
accessToken: | (NSString *) | accessToken | |
extraInfo: | (NSDictionary *) | extraInfo | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with a third-party account.
type | The login type, such as ThingSmartUserLoginTypeApple for Apple login. |
countryCode | The country code. |
accessToken | The access token for third-party account login. |
extraInfo | Additional parameters containing platform identifier and unique ID for cryptographic tokens. If type is ThingSmartUserLoginTypeJWT , also can use ThingSmartUserLoginJWTModel in params extraInfo. |
success | Called upon successful completion of the task. |
failure | Called when the task fails due to an error. Error domian is ThingSmartUserLoginErrorDomain , error code is ThingSmartUserLoginErrorCode |
- (void) loginByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with an email.
countryCode | The country code. |
The email. | |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with an email.
countryCode | The country code. |
The email. | |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with an email.
countryCode | The country code. |
The email. | |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with an email.
countryCode | The country code. |
The email. | |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByFacebook: | (NSString *) | countryCode | |
token: | (NSString *) | token | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the Facebook account.
countryCode | The country code. |
token | The token that is used for login with the Facebook account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByFacebook: | (NSString *) | countryCode | |
token: | (NSString *) | token | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the Facebook account.
countryCode | The country code. |
token | The token that is used for login with the Facebook account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByFacebook: | (NSString *) | countryCode | |
token: | (NSString *) | token | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the Facebook account.
countryCode | The country code. |
token | The token that is used for login with the Facebook account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByFacebook: | (NSString *) | countryCode | |
token: | (NSString *) | token | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the Facebook account.
countryCode | The country code. |
token | The token that is used for login with the Facebook account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the mobile phone password.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the mobile phone password.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the mobile phone password.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the mobile phone password.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByQQ: | (NSString *) | countryCode | |
userId: | (NSString *) | userId | |
accessToken: | (NSString *) | accessToken | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the QQ account.
countryCode | The country code. |
userId | The user ID that is authorized for login with the QQ account. |
accessToken | AccessToken that is used for login with the QQ account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByQQ: | (NSString *) | countryCode | |
userId: | (NSString *) | userId | |
accessToken: | (NSString *) | accessToken | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the QQ account.
countryCode | The country code. |
userId | The user ID that is authorized for login with the QQ account. |
accessToken | AccessToken that is used for login with the QQ account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByQQ: | (NSString *) | countryCode | |
userId: | (NSString *) | userId | |
accessToken: | (NSString *) | accessToken | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the QQ account.
countryCode | The country code. |
userId | The user ID that is authorized for login with the QQ account. |
accessToken | AccessToken that is used for login with the QQ account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByQQ: | (NSString *) | countryCode | |
userId: | (NSString *) | userId | |
accessToken: | (NSString *) | accessToken | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the QQ account.
countryCode | The country code. |
userId | The user ID that is authorized for login with the QQ account. |
accessToken | AccessToken that is used for login with the QQ account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByQRcode: | (NSDictionary *) | codeInfo | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Authorizes third-party apps to support login with QR code.
codeInfo | The QR code information. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(LoginByQRCode).
- (void) loginByQRcode: | (NSDictionary *) | codeInfo | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Authorizes third-party apps to support login with QR code.
codeInfo | The QR code information. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(LoginByQRCode).
- (void) loginByQRcode: | (NSDictionary *) | codeInfo | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Authorizes third-party apps to support login with QR code.
codeInfo | The QR code information. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(LoginByQRCode).
- (void) loginByQRcode: | (NSDictionary *) | codeInfo | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Authorizes third-party apps to support login with QR code.
codeInfo | The QR code information. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(LoginByQRCode).
- (void) loginByTwitter: | (NSString *) | countryCode | |
key: | (NSString *) | key | |
secret: | (NSString *) | secret | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the Twitter account.
countryCode | The country code. |
key | The key that is used for login with the Twitter account. |
secret | The secret that is used for login with the Twitter account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByTwitter: | (NSString *) | countryCode | |
key: | (NSString *) | key | |
secret: | (NSString *) | secret | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the Twitter account.
countryCode | The country code. |
key | The key that is used for login with the Twitter account. |
secret | The secret that is used for login with the Twitter account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByTwitter: | (NSString *) | countryCode | |
key: | (NSString *) | key | |
secret: | (NSString *) | secret | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the Twitter account.
countryCode | The country code. |
key | The key that is used for login with the Twitter account. |
secret | The secret that is used for login with the Twitter account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByTwitter: | (NSString *) | countryCode | |
key: | (NSString *) | key | |
secret: | (NSString *) | secret | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the Twitter account.
countryCode | The country code. |
key | The key that is used for login with the Twitter account. |
secret | The secret that is used for login with the Twitter account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByUid: | (NSString *) | uid | |
password: | (NSString *) | password | |
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the user ID.
uid | The user ID. |
password | The password. |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginByUid: | (NSString *) | uid | |
password: | (NSString *) | password | |
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the user ID.
uid | The user ID. |
password | The password. |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginByUid: | (NSString *) | uid | |
password: | (NSString *) | password | |
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the user ID.
uid | The user ID. |
password | The password. |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginByUid: | (NSString *) | uid | |
password: | (NSString *) | password | |
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the user ID.
uid | The user ID. |
password | The password. |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginByWechat: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the WeChat account.
countryCode | The country code. |
code | The code that is used for login with the WeChat account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByWechat: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the WeChat account.
countryCode | The country code. |
code | The code that is used for login with the WeChat account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByWechat: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the WeChat account.
countryCode | The country code. |
code | The code that is used for login with the WeChat account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginByWechat: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables login with the WeChat account.
countryCode | The country code. |
code | The code that is used for login with the WeChat account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginOrRegisterByPhone: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
createHome: | (BOOL) | createHome | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
createHome | Creates a default home. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterByPhone: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
createHome: | (BOOL) | createHome | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
createHome | Creates a default home. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterByPhone: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
createHome: | (BOOL) | createHome | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
createHome | Creates a default home. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterByPhone: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
createHome: | (BOOL) | createHome | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
createHome | Creates a default home. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterByPhone: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterByPhone: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterByPhone: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterByPhone: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterWithCountryCode: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
createHome: | (BOOL) | createHome | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
The user ID that is used to log in or register. The account is registered at the first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
createHome | Creates the default home. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginOrRegisterWithCountryCode: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
createHome: | (BOOL) | createHome | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
The user ID that is used to log in or register. The account is registered at the first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
createHome | Creates the default home. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginOrRegisterWithCountryCode: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
createHome: | (BOOL) | createHome | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
The user ID that is used to log in or register. The account is registered at the first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
createHome | Creates the default home. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginOrRegisterWithCountryCode: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
createHome: | (BOOL) | createHome | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
The user ID that is used to log in or register. The account is registered at the first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
createHome | Creates the default home. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginOrRegisterWithCountryCode: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterWithCountryCode: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterWithCountryCode: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOrRegisterWithCountryCode: | (NSString *) | countryCode | |
uid: | (NSString *) | uid | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration and login with the user ID. The account is registered at first login.
countryCode | The country code. |
uid | The user ID. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) loginOut: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Logout.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginOut: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Logout.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginOut: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Logout.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginOut: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Logout.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Enables login with an email verification code.
The email. | |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Enables login with an email verification code.
The email. | |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Enables login with an email verification code.
The email. | |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Enables login with an email verification code.
The email. | |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithMobile: | (NSString *) | mobile | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Enables login with the mobile phone verification code.
mobile | The mobile phone number. |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithMobile: | (NSString *) | mobile | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Enables login with the mobile phone verification code.
mobile | The mobile phone number. |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithMobile: | (NSString *) | mobile | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Enables login with the mobile phone verification code.
mobile | The mobile phone number. |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithMobile: | (NSString *) | mobile | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Enables login with the mobile phone verification code.
mobile | The mobile phone number. |
countryCode | The country code. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithTicket: | (NSString *) | ticket | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Login with ticket. Ticket is created from a third-party cloud platform, for more information, please refer to the thing.cloud-to-cloud solution.
ticket | User ticket from service. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithTicket: | (NSString *) | ticket | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Login with ticket. Ticket is created from a third-party cloud platform, for more information, please refer to the thing.cloud-to-cloud solution.
ticket | User ticket from service. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithTicket: | (NSString *) | ticket | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Login with ticket. Ticket is created from a third-party cloud platform, for more information, please refer to the thing.cloud-to-cloud solution.
ticket | User ticket from service. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (void) loginWithTicket: | (NSString *) | ticket | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Login with ticket. Ticket is created from a third-party cloud platform, for more information, please refer to the thing.cloud-to-cloud solution.
ticket | User ticket from service. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (void) mobileBinding: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds a mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) mobileBinding: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds a mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) mobileBinding: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds a mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) mobileBinding: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds a mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) regionListWithCountryCode: | (NSString *) | countryCode | |
success: | (void(^)(NSArray< ThingRegionModel * > *regionList)) | success | |
failure: | (ThingFailureError) | failure | |
Returns the region list.
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) regionListWithCountryCode: | (NSString *) | countryCode | |
success: | (void(^)(NSArray< ThingRegionModel * > *regionList)) | success | |
failure: | (ThingFailureError) | failure | |
Returns the region list.
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) regionListWithCountryCode: | (NSString *) | countryCode | |
success: | (void(^)(NSArray< ThingRegionModel * > *regionList)) | success | |
failure: | (ThingFailureError) | failure | |
Returns the region list.
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) regionListWithCountryCode: | (NSString *) | countryCode | |
success: | (void(^)(NSArray< ThingRegionModel * > *regionList)) | success | |
failure: | (ThingFailureError) | failure | |
Returns the region list.
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) registerAnonymousWithCountryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables anonymous registration.
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) registerAnonymousWithCountryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables anonymous registration.
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) registerAnonymousWithCountryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables anonymous registration.
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) registerAnonymousWithCountryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables anonymous registration.
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) registerAnonymousWithCountryCode: | (NSString *) | countryCode | |
userName: | (NSString *) | userName | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables anonymous registration.
countryCode | The country code. |
userName | The username, such as [UIDevice currentDevice].name. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerAnonymousWithCountryCode: | (NSString *) | countryCode | |
userName: | (NSString *) | userName | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables anonymous registration.
countryCode | The country code. |
userName | The username, such as [UIDevice currentDevice].name. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerAnonymousWithCountryCode: | (NSString *) | countryCode | |
userName: | (NSString *) | userName | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables anonymous registration.
countryCode | The country code. |
userName | The username, such as [UIDevice currentDevice].name. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerAnonymousWithCountryCode: | (NSString *) | countryCode | |
userName: | (NSString *) | userName | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables anonymous registration.
countryCode | The country code. |
userName | The username, such as [UIDevice currentDevice].name. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Email register 2.0.
countryCode | The country code. |
The email. | |
password | The password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) registerByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Email register 2.0.
countryCode | The country code. |
The email. | |
password | The password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) registerByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Email register 2.0.
countryCode | The country code. |
The email. | |
password | The password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) registerByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Email register 2.0.
countryCode | The country code. |
The email. | |
password | The password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) registerByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables email registration 1.0.
countryCode | The country code. |
The email. | |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables email registration 1.0.
countryCode | The country code. |
The email. | |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables email registration 1.0.
countryCode | The country code. |
The email. | |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables email registration 1.0.
countryCode | The country code. |
The email. | |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
password: | (NSString *) | password | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Registers with a mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
password | The password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) registerByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
password: | (NSString *) | password | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Registers with a mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
password | The password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) registerByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
password: | (NSString *) | password | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Registers with a mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
password | The password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) registerByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
password: | (NSString *) | password | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Registers with a mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
password | The password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) registerByUid: | (NSString *) | uid | |
password: | (NSString *) | password | |
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration with the user ID.
uid | The user ID. |
password | The password. |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerByUid: | (NSString *) | uid | |
password: | (NSString *) | password | |
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration with the user ID.
uid | The user ID. |
password | The password. |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerByUid: | (NSString *) | uid | |
password: | (NSString *) | password | |
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration with the user ID.
uid | The user ID. |
password | The password. |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerByUid: | (NSString *) | uid | |
password: | (NSString *) | password | |
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Enables registration with the user ID.
uid | The user ID. |
password | The password. |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) registerWithUserName: | (NSString *) | userName | |
region: | (NSString *) | region | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
password: | (NSString *) | password | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Registers with the mobile phone or email.
userName | The mobile phone number or email address. |
region | The region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
code | The verification code. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) registerWithUserName: | (NSString *) | userName | |
region: | (NSString *) | region | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
password: | (NSString *) | password | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Registers with the mobile phone or email.
userName | The mobile phone number or email address. |
region | The region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
code | The verification code. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) registerWithUserName: | (NSString *) | userName | |
region: | (NSString *) | region | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
password: | (NSString *) | password | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Registers with the mobile phone or email.
userName | The mobile phone number or email address. |
region | The region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
code | The verification code. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) registerWithUserName: | (NSString *) | userName | |
region: | (NSString *) | region | |
countryCode: | (NSString *) | countryCode | |
code: | (NSString *) | code | |
password: | (NSString *) | password | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Registers with the mobile phone or email.
userName | The mobile phone number or email address. |
region | The region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
code | The verification code. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) requestHighwayTokenWithSuccess: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Get highway gateway access token
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Highway).
- (void) requestHighwayTokenWithSuccess: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Get highway gateway access token
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Highway).
- (void) requestHighwayTokenWithSuccess: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Get highway gateway access token
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Highway).
- (void) requestHighwayTokenWithSuccess: | (ThingSuccessID) | success | |
failure: | (ThingFailureError) | failure | |
Get highway gateway access token
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Highway).
- (void) resetPasswordByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
newPassword: | (NSString *) | newPassword | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the email password.
countryCode | The country code. |
The email. | |
newPassword | The new password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetPasswordByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
newPassword: | (NSString *) | newPassword | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the email password.
countryCode | The country code. |
The email. | |
newPassword | The new password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetPasswordByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
newPassword: | (NSString *) | newPassword | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the email password.
countryCode | The country code. |
The email. | |
newPassword | The new password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetPasswordByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
newPassword: | (NSString *) | newPassword | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the email password.
countryCode | The country code. |
The email. | |
newPassword | The new password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetPasswordByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
newPassword: | (NSString *) | newPassword | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the mobile phone password.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
newPassword | The new password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetPasswordByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
newPassword: | (NSString *) | newPassword | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the mobile phone password.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
newPassword | The new password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetPasswordByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
newPassword: | (NSString *) | newPassword | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the mobile phone password.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
newPassword | The new password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetPasswordByPhone: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
newPassword: | (NSString *) | newPassword | |
code: | (NSString *) | code | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the mobile phone password.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
newPassword | The new password. |
code | The verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) resetWithUserInfo: | (NSDictionary *) | info | |
source: | (NSUInteger) | source | |
info | |
source | 6:login by phone 7: login by email |
- (void) resetWithUserInfo: | (NSDictionary *) | info | |
source: | (NSUInteger) | source | |
info | |
source | 6:login by phone 7: login by email |
- (void) resetWithUserInfo: | (NSDictionary *) | info | |
source: | (NSUInteger) | source | |
info | |
source | 6:login by phone 7: login by email |
- (void) resetWithUserInfo: | (NSDictionary *) | info | |
source: | (NSUInteger) | source | |
info | |
source | 6:login by phone 7: login by email |
- (void) sendBindingVerificationCodeWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the email verification code.
The email. | |
countryCode | The country code. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindingVerificationCodeWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the email verification code.
The email. | |
countryCode | The country code. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindingVerificationCodeWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the email verification code.
The email. | |
countryCode | The country code. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindingVerificationCodeWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the email verification code.
The email. | |
countryCode | The country code. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindingVerificationCodeWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the email verification code.
The email. | |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindingVerificationCodeWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the email verification code.
The email. | |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindingVerificationCodeWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the email verification code.
The email. | |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindingVerificationCodeWithEmail: | (NSString *) | ||
countryCode: | (NSString *) | countryCode | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns the email verification code.
The email. | |
countryCode | The country code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindVasVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
- (void) sendBindVasVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
- (void) sendBindVasVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
- (void) sendBindVasVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
- (void) sendBindVasVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bing a mobile phone and enable more services.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindVasVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bing a mobile phone and enable more services.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindVasVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bing a mobile phone and enable more services.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindVasVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bing a mobile phone and enable more services.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bind a mobile phone number or change the mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bind a mobile phone number or change the mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bind a mobile phone number or change the mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendBindVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bind a mobile phone number or change the mobile phone number.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCode: | (NSString *) | countryCode | |
account: | (NSString *) | account | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bind a mobile phone number or change the mobile phone number.
countryCode | The country code. |
account | The mobile phone number/email. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCode: | (NSString *) | countryCode | |
account: | (NSString *) | account | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bind a mobile phone number or change the mobile phone number.
countryCode | The country code. |
account | The mobile phone number/email. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCode: | (NSString *) | countryCode | |
account: | (NSString *) | account | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bind a mobile phone number or change the mobile phone number.
countryCode | The country code. |
account | The mobile phone number/email. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCode: | (NSString *) | countryCode | |
account: | (NSString *) | account | |
captchaContext: | (NSDictionary *) | captchaContext | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to bind a mobile phone number or change the mobile phone number.
countryCode | The country code. |
account | The mobile phone number/email. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
type: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to a mobile phone to enable login, registration, and password resetting.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
type | Valid values: 0 Log in with the mobile phone verification code. 1 : Register with the mobile phone verification code. 2 : Reset a password with the mobile phone verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
type: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to a mobile phone to enable login, registration, and password resetting.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
type | Valid values: 0 Log in with the mobile phone verification code. 1 : Register with the mobile phone verification code. 2 : Reset a password with the mobile phone verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
type: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to a mobile phone to enable login, registration, and password resetting.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
type | Valid values: 0 Log in with the mobile phone verification code. 1 : Register with the mobile phone verification code. 2 : Reset a password with the mobile phone verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCode: | (NSString *) | countryCode | |
phoneNumber: | (NSString *) | phoneNumber | |
type: | (NSInteger) | type | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to a mobile phone to enable login, registration, and password resetting.
countryCode | The country code. |
phoneNumber | The mobile phone number. |
type | Valid values: 0 Log in with the mobile phone verification code. 1 : Register with the mobile phone verification code. 2 : Reset a password with the mobile phone verification code. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to an email to reset the password.
countryCode | The country code. |
The email. | |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to an email to reset the password.
countryCode | The country code. |
The email. | |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to an email to reset the password.
countryCode | The country code. |
The email. | |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeByEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to an email to reset the password.
countryCode | The country code. |
The email. | |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeByRegisterEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to an email to register the account.
countryCode | The country code. |
The email. | |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeByRegisterEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to an email to register the account.
countryCode | The country code. |
The email. | |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeByRegisterEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to an email to register the account.
countryCode | The country code. |
The email. | |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeByRegisterEmail: | (NSString *) | countryCode | |
email: | (NSString *) | ||
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends the verification code to an email to register the account.
countryCode | The country code. |
The email. | |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(DeprecatedApi).
- (void) sendVerifyCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
type: | (NSInteger) | type | |
captchaContext: | (nonnull NSDictionary *) | captchaContext | |
success: | (nonnull ThingSuccessHandler) | success | |
failure: | (nonnull ThingFailureError) | failure | |
Sends the verification code to register, log in, or reset the password.
userName | The mobile phone number or email address. |
region | To enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the password with the mobile phone number. 5 : Complete account information in trial mode. 7 : Change the account. 8 : Cancel the account. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
type: | (NSInteger) | type | |
captchaContext: | (nonnull NSDictionary *) | captchaContext | |
success: | (nonnull ThingSuccessHandler) | success | |
failure: | (nonnull ThingFailureError) | failure | |
Sends the verification code to register, log in, or reset the password.
userName | The mobile phone number or email address. |
region | To enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the password with the mobile phone number. 5 : Complete account information in trial mode. 7 : Change the account. 8 : Cancel the account. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
type: | (NSInteger) | type | |
captchaContext: | (nonnull NSDictionary *) | captchaContext | |
success: | (nonnull ThingSuccessHandler) | success | |
failure: | (nonnull ThingFailureError) | failure | |
Sends the verification code to register, log in, or reset the password.
userName | The mobile phone number or email address. |
region | To enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the password with the mobile phone number. 5 : Complete account information in trial mode. 7 : Change the account. 8 : Cancel the account. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
type: | (NSInteger) | type | |
captchaContext: | (nonnull NSDictionary *) | captchaContext | |
success: | (nonnull ThingSuccessHandler) | success | |
failure: | (nonnull ThingFailureError) | failure | |
Sends the verification code to register, log in, or reset the password.
userName | The mobile phone number or email address. |
region | To enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the password with the mobile phone number. 5 : Complete account information in trial mode. 7 : Change the account. 8 : Cancel the account. |
captchaContext | Man-machine identification ticket |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
type: | (NSInteger) | type | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Sends the verification code to register, log in, or reset the password.
userName | The mobile phone number or email address. |
region | To enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the password with the mobile phone number. 5 : Complete account information in trial mode. 7 : Change the account. 8 : Cancel the account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
type: | (NSInteger) | type | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Sends the verification code to register, log in, or reset the password.
userName | The mobile phone number or email address. |
region | To enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the password with the mobile phone number. 5 : Complete account information in trial mode. 7 : Change the account. 8 : Cancel the account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
type: | (NSInteger) | type | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Sends the verification code to register, log in, or reset the password.
userName | The mobile phone number or email address. |
region | To enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the password with the mobile phone number. 5 : Complete account information in trial mode. 7 : Change the account. 8 : Cancel the account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) sendVerifyCodeWithUserName: | (NSString *) | userName | |
region: | (NSString *_Nullable) | region | |
countryCode: | (NSString *) | countryCode | |
type: | (NSInteger) | type | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Sends the verification code to register, log in, or reset the password.
userName | The mobile phone number or email address. |
region | To enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
countryCode | The country code. |
type | Valid values: 1 : Register with the mobile phone verification code. 2 : Log in with the mobile phone verification code. 3 : Reset the password with the mobile phone number. 5 : Complete account information in trial mode. 7 : Change the account. 8 : Cancel the account. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
+ (instancetype) sharedInstance |
Returns the singleton of the class.
+ (instancetype) sharedInstance |
Returns the singleton of the class.
+ (instancetype) sharedInstance |
Returns the singleton of the class.
+ (instancetype) sharedInstance |
Returns the singleton of the class.
- (void) switchUserRegion: | (NSString *) | region | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Switches the region of the logged-in user.
region | The region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) switchUserRegion: | (NSString *) | region | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Switches the region of the logged-in user.
region | The region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) switchUserRegion: | (NSString *) | region | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Switches the region of the logged-in user.
region | The region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (void) switchUserRegion: | (NSString *) | region | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Switches the region of the logged-in user.
region | The region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Region).
- (BOOL) updateApplicationContext: | (ios(9.0)) | API_AVAILABLE |
Synchronizes ThingSmartUser context to Apple Watch. In the case of user login, logout, and session expiration on iPhone, use this method to manually synchronize the data. Example: [sharedInstance updateApplicationContext:session];
session | The session. |
Provided by category ThingSmartUser(WCSession).
- (BOOL) updateApplicationContext: | (ios(9.0)) | API_AVAILABLE |
Synchronizes ThingSmartUser context to Apple Watch. In the case of user login, logout, and session expiration on iPhone, use this method to manually synchronize the data. Example: [sharedInstance updateApplicationContext:session];
session | The session. |
Provided by category ThingSmartUser(WCSession).
- (BOOL) updateApplicationContext: | (ios(9.0)) | API_AVAILABLE |
Synchronizes ThingSmartUser context to Apple Watch. In the case of user login, logout, and session expiration on iPhone, use this method to manually synchronize the data. Example: [sharedInstance updateApplicationContext:session];
session | The session. |
Provided by category ThingSmartUser(WCSession).
- (BOOL) updateApplicationContext: | (ios(9.0)) | API_AVAILABLE |
Synchronizes ThingSmartUser context to Apple Watch. In the case of user login, logout, and session expiration on iPhone, use this method to manually synchronize the data. Example: [sharedInstance updateApplicationContext:session];
session | The session. |
Provided by category ThingSmartUser(WCSession).
- (void) updateAvatarWithImageUrl: | (NSString *) | imageUrl | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("Will be removed in the) | future | |
(please maintain user avatar by yourself") | __deprecated_msg | ||
Edits the avatar.
imageUrl | The avatar image Url. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateAvatarWithImageUrl: | (NSString *) | imageUrl | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("Will be removed in the) | future | |
(please maintain user avatar by yourself") | __deprecated_msg | ||
Edits the avatar.
imageUrl | The avatar image Url. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateAvatarWithImageUrl: | (NSString *) | imageUrl | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("Will be removed in the) | future | |
(please maintain user avatar by yourself") | __deprecated_msg | ||
Edits the avatar.
imageUrl | The avatar image Url. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateAvatarWithImageUrl: | (NSString *) | imageUrl | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("Will be removed in the) | future | |
(please maintain user avatar by yourself") | __deprecated_msg | ||
Edits the avatar.
imageUrl | The avatar image Url. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateHeadIcon: | (UIImage *) | headIcon | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("Will be removed in the) | future | |
(please maintain user avatar by yourself") | __deprecated_msg | ||
Edits the avatar.
headIcon | The avatar. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateHeadIcon: | (UIImage *) | headIcon | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("Will be removed in the) | future | |
(please maintain user avatar by yourself") | __deprecated_msg | ||
Edits the avatar.
headIcon | The avatar. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateHeadIcon: | (UIImage *) | headIcon | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("Will be removed in the) | future | |
(please maintain user avatar by yourself") | __deprecated_msg | ||
Edits the avatar.
headIcon | The avatar. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateHeadIcon: | (UIImage *) | headIcon | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | ("Will be removed in the) | future | |
(please maintain user avatar by yourself") | __deprecated_msg | ||
Edits the avatar.
headIcon | The avatar. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateNickname: | (NSString *) | nickName | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the nickname.
nickName | The nickname. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateNickname: | (NSString *) | nickName | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the nickname.
nickName | The nickname. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateNickname: | (NSString *) | nickName | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the nickname.
nickName | The nickname. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateNickname: | (NSString *) | nickName | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the nickname.
nickName | The nickname. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTempUnitWithTempUnit: | (NSInteger) | tempUnit | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the user temperature unit.
tempUnit | The temperature unit. For example, 1 means °C and 2 means °F . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTempUnitWithTempUnit: | (NSInteger) | tempUnit | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the user temperature unit.
tempUnit | The temperature unit. For example, 1 means °C and 2 means °F . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTempUnitWithTempUnit: | (NSInteger) | tempUnit | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the user temperature unit.
tempUnit | The temperature unit. For example, 1 means °C and 2 means °F . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTempUnitWithTempUnit: | (NSInteger) | tempUnit | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits the user temperature unit.
tempUnit | The temperature unit. For example, 1 means °C and 2 means °F . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTimeZoneWithTimeZoneId: | (NSString *) | timeZoneId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits user time zone information.
timeZoneId | The time zone ID, such as Asia/Shanghai . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTimeZoneWithTimeZoneId: | (NSString *) | timeZoneId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits user time zone information.
timeZoneId | The time zone ID, such as Asia/Shanghai . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTimeZoneWithTimeZoneId: | (NSString *) | timeZoneId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits user time zone information.
timeZoneId | The time zone ID, such as Asia/Shanghai . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTimeZoneWithTimeZoneId: | (NSString *) | timeZoneId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Edits user time zone information.
timeZoneId | The time zone ID, such as Asia/Shanghai . |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateUserInfo: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Updates user information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateUserInfo: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Updates user information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateUserInfo: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Updates user information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateUserInfo: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Updates user information.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) userInfo: | (NSDictionary *) | codeInfo | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns information about third-party apps.
codeInfo | The QR code information. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(LoginByQRCode).
- (void) userInfo: | (NSDictionary *) | codeInfo | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns information about third-party apps.
codeInfo | The QR code information. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(LoginByQRCode).
- (void) userInfo: | (NSDictionary *) | codeInfo | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns information about third-party apps.
codeInfo | The QR code information. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(LoginByQRCode).
- (void) userInfo: | (NSDictionary *) | codeInfo | |
success: | (nullable ThingSuccessID) | success | |
failure: | (nullable ThingFailureError) | failure | |
Returns information about third-party apps.
codeInfo | The QR code information. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(LoginByQRCode).
- (void) usernameBindingWithCountryCode: | (NSString *) | countryCode | |
userName: | (NSString *) | userName | |
code: | (NSString *) | code | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds a username.
countryCode | The country code. |
userName | The mobile phone number or email address. |
code | The verification code. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) usernameBindingWithCountryCode: | (NSString *) | countryCode | |
userName: | (NSString *) | userName | |
code: | (NSString *) | code | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds a username.
countryCode | The country code. |
userName | The mobile phone number or email address. |
code | The verification code. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) usernameBindingWithCountryCode: | (NSString *) | countryCode | |
userName: | (NSString *) | userName | |
code: | (NSString *) | code | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds a username.
countryCode | The country code. |
userName | The mobile phone number or email address. |
code | The verification code. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
- (void) usernameBindingWithCountryCode: | (NSString *) | countryCode | |
userName: | (NSString *) | userName | |
code: | (NSString *) | code | |
password: | (NSString *) | password | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Binds a username.
countryCode | The country code. |
userName | The mobile phone number or email address. |
code | The verification code. |
password | The password. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartUser(Anonymous).
|
readnonatomicstrong |
The country code. For example, 86
means China, 1
means America.
Definition at line 124 of file ThingSmartUser.h.
|
readnonatomicstrong |
The API domains of the current account region.
Definition at line 133 of file ThingSmartUser.h.
|
readnonatomicstrong |
Definition at line 169 of file ThingSmartUser.h.
|
readnonatomicstrong |
The email.
Definition at line 121 of file ThingSmartUser.h.
|
readnonatomicstrong |
Extra parameters.
Definition at line 175 of file ThingSmartUser.h.
|
readnonatomicstrong |
Definition at line 143 of file ThingSmartUser.h.
|
readnonatomicstrong |
The avatar.
Definition at line 109 of file ThingSmartUser.h.
|
readnonatomicassign |
The login status.
Definition at line 127 of file ThingSmartUser.h.
|
readnonatomicstrong |
The MQTT host.
Definition at line 141 of file ThingSmartUser.h.
|
readwritenonatomicstrong |
Provided by category ThingSmartUser(BleMesh).
Definition at line 17 of file ThingSmartUser+BleMesh.h.
|
readwritenonatomicstrong |
Provided by category ThingSmartUser(BleMesh).
Definition at line 15 of file ThingSmartUser+BleMesh.h.
|
readnonatomicstrong |
The nickname.
Definition at line 112 of file ThingSmartUser.h.
|
readnonatomicstrong |
Definition at line 138 of file ThingSmartUser.h.
|
readnonatomicstrong |
The mobile phone number.
Definition at line 118 of file ThingSmartUser.h.
|
readnonatomicassign |
The MQTT port.
Definition at line 146 of file ThingSmartUser.h.
|
readnonatomicstrong |
The QUIC host.
Definition at line 152 of file ThingSmartUser.h.
|
readnonatomicassign |
The QUIC port.
Definition at line 155 of file ThingSmartUser.h.
|
readnonatomicassign |
The user registration type.
Definition at line 164 of file ThingSmartUser.h.
|
readnonatomicstrong |
The region code of the current account. For example, AY
means China, AZ
means America, and EU
means Europe.
Definition at line 130 of file ThingSmartUser.h.
|
readnonatomicstrong |
The session ID.
Definition at line 103 of file ThingSmartUser.h.
|
readnonatomicstrong |
The nickname of the SNS account.
Definition at line 167 of file ThingSmartUser.h.
|
readwritenonatomicassign |
The temperature unit. For example, 1
means °C
and 2
means °F
.
Definition at line 161 of file ThingSmartUser.h.
|
readnonatomicstrong |
The timezone ID, such as Asia/Shanghai
.
Definition at line 136 of file ThingSmartUser.h.
|
readnonatomicstrong |
The user ID.
Definition at line 106 of file ThingSmartUser.h.
|
readnonatomicassign |
Specifies whether to enable QUIC.
Definition at line 158 of file ThingSmartUser.h.
|
readwritenonatomicstrong |
Definition at line 177 of file ThingSmartUser.h.
|
readnonatomicstrong |
The username. If the account is registered with a mobile phone number, the value is set to the mobile phone number. If the account is registered with an email, the value is set to the email.
Definition at line 115 of file ThingSmartUser.h.
|
readnonatomicassign |
The user type.
Definition at line 172 of file ThingSmartUser.h.
|
readnonatomicassign |
Specifies whether to enable SSL.
Definition at line 149 of file ThingSmartUser.h.