Last Updated on : 2024-10-15 09:16:47
Tuya Smart Life App SDK supports multiple types of user accounts, such as mobile phone numbers, email addresses, and app UIDs.
Different types of accounts support the following specific capabilities:
In this module, the TuyaSmartUser
object is frequently called. This object is a singleton that stores all information about the current user including login and registration methods. The following table describes the data model of the object.
Field | Type | Description |
---|---|---|
userName | NSString | The username.
|
headIconUrl | NSString | The URL of the user avatar. |
nickname | NSString | The nickname of the user. |
phoneNumber | NSString | The mobile phone number of the user. |
NSString | The email address of the user. | |
countryCode | NSString | The country code. Valid values:
|
regionCode | NSString | The availability zone to which the current account belongs. Valid values:
|
timezoneId | NSString | The time zone ID. Example: Asia/Shanghai. |
tempUnit | NSInteger | The temperature unit. Valid values:
|
snsNickname | NSString | The nickname of a third-party account |
isLogin | BOOL | The sign-in status. |
regFrom | TYRegType | The type of registration. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback