![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
ThingSmartSDK is an entry for using the Thing SDK. More...
#import <ThingSmartSDK.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... | |
(void) | + setCountryCode: |
(void) | + setCountryCode: |
(void) | + setCountryCode: |
(void) | + setCountryCode: |
(NSString *) | + getCountryCode |
(NSString *) | + getCountryCode |
(NSString *) | + getCountryCode |
(NSString *) | + getCountryCode |
(NSString *) | + getCountryNumWithCountryCode: |
(NSString *) | + getCountryNumWithCountryCode: |
(NSString *) | + getCountryNumWithCountryCode: |
(NSString *) | + getCountryNumWithCountryCode: |
Properties | |
NSString * | appGroupId |
BOOL | locationSwitch |
double | latitude |
Latitude of the location. More... | |
double | longitude |
Longitude of the location. More... | |
ThingEnv | env |
Server environment, defaults is ThingEnvRelease. Please do not set in production environment. More... | |
BOOL | useSSLPinning |
Request need SSL Pinning, default is YES . More... | |
BOOL | useHTTPSDNS |
Request need Https dns, default is NO . More... | |
BOOL | removesKeysWithNullValues |
Whether to remove keys with NSNull values from response JSON. Defaults to YES . More... | |
NSString * | appKey |
ThingSmart AppKey. More... | |
NSString * | secretKey |
ThingSmart SecretKey. More... | |
NSString * | channel |
Channel. More... | |
NSString * | uuid |
UUID of the iOS/watchOS device. Will be created at app first launch. More... | |
NSString * | appVersion |
App version, default value is from Info.plist -> CFBundleShortVersionString. More... | |
NSString * | deviceProductName |
Device product name. For example: iPhone XS Max. More... | |
NSString * | lang |
App SDK lang, default value is from mainBundle -> preferredLocalizations -> [0]. More... | |
NSString * | appEnv |
NSString * | mbUrl |
NSString * | gwHost |
NSString * | mbHost |
int | port |
BOOL | useSSL |
NSString * | quicHost |
int | quicPort |
BOOL | useQUIC |
NSString * | appSupportUrl |
NSString * | regionCode |
BOOL | bExecNeutralDomain |
BOOL | autoSelectNetworkLink |
Low-latency network links are preferred, default is YES . More... | |
id< ThingSmartDomainConfigurable > | domain |
NSString * | ecode |
NSString * | sid |
id< ThingSmartSDKEvent > | eventHandler |
BOOL | debugMode |
Debug mode, default is false. Verbose log will print into console if opened. More... | |
NSString * | pushToken |
NSData * | deviceToken |
Pushes deviceToken. More... | |
NSData * | voipToken |
voip More... | |
ThingSmartSDK is an entry for using the Thing SDK.
Before using the SDK, please go to Thing IoT Platform (https://iot.thing.com) create a SDK App. We need 4 things from the Platform to initialize the SDK:
t_s.bmp
and put it in your project as a resource.If you need to set some params (appGroupId, env, appVersion, lang, etc...) in this class, be sure to set them before initialize the SDK.
Finally, call this method to initialize the SDK: [sharedInstance (ThingSmartSDK) startWithAppKey:@"YOUR_APP_KEY" secretKey:@"YOUR_APP_SECRET"];
.
Definition at line 38 of file ThingSmartSDK.h.
Set network interface request priority.
Provided by category ThingSmartSDK(CountryCode).
Set network interface request priority.
Provided by category ThingSmartSDK(CountryCode).
Set network interface request priority.
Provided by category ThingSmartSDK(CountryCode).
Set network interface request priority.
Provided by category ThingSmartSDK(CountryCode).
- (BOOL) checkVersionUpgrade |
Check if ThingSmartKit need to be upgrade to ThingSmartHomeKit.
Provided by category ThingSmartSDK(Upgrade).
- (BOOL) checkVersionUpgrade |
Check if ThingSmartKit need to be upgrade to ThingSmartHomeKit.
Provided by category ThingSmartSDK(Upgrade).
- (BOOL) checkVersionUpgrade |
Check if ThingSmartKit need to be upgrade to ThingSmartHomeKit.
Provided by category ThingSmartSDK(Upgrade).
- (BOOL) checkVersionUpgrade |
Check if ThingSmartKit need to be upgrade to ThingSmartHomeKit.
Provided by category ThingSmartSDK(Upgrade).
+ (NSString *) getCountryCode |
Provided by category ThingSmartSDK(CountryCode).
+ (NSString *) getCountryCode |
Provided by category ThingSmartSDK(CountryCode).
+ (NSString *) getCountryCode |
Provided by category ThingSmartSDK(CountryCode).
+ (NSString *) getCountryCode |
Provided by category ThingSmartSDK(CountryCode).
+ (NSString *) getCountryNumWithCountryCode: | (NSString *) | countryCode |
Provided by category ThingSmartSDK(CountryCode).
+ (NSString *) getCountryNumWithCountryCode: | (NSString *) | countryCode |
Provided by category ThingSmartSDK(CountryCode).
+ (NSString *) getCountryNumWithCountryCode: | (NSString *) | countryCode |
Provided by category ThingSmartSDK(CountryCode).
+ (NSString *) getCountryNumWithCountryCode: | (NSString *) | countryCode |
Provided by category ThingSmartSDK(CountryCode).
- (void) getDevicePushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether device alert notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getDevicePushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether device alert notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getDevicePushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether device alert notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getDevicePushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether device alert notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getFamilyPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app home notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getFamilyPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app home notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getFamilyPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app home notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getFamilyPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app home notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getMarketingPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app marketing messages are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getMarketingPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app marketing messages are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getMarketingPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app marketing messages are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getMarketingPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app marketing messages are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getNoticePushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app message notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getNoticePushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app message notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getNoticePushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app message notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getNoticePushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether app message notifications are enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether the app messages pushing function is enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether the app messages pushing function is enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether the app messages pushing function is enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) getPushStatusWithSuccess: | (__nullable ThingSuccessBOOL) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Indicates whether the app messages pushing function is enabled.
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) registerLiveActivityWithId: | (NSString *) | activityId | |
pushToken: | (NSData *) | token | |
completion: | (void(^)(NSError *_Nullable error)) | completion | |
Provided by category ThingSmartSDK(LiveActivity).
- (void) registerLiveActivityWithId: | (NSString *) | activityId | |
pushToken: | (NSData *) | token | |
completion: | (void(^)(NSError *_Nullable error)) | completion | |
Provided by category ThingSmartSDK(LiveActivity).
- (void) registerLiveActivityWithId: | (NSString *) | activityId | |
pushToken: | (NSData *) | token | |
completion: | (void(^)(NSError *_Nullable error)) | completion | |
Provided by category ThingSmartSDK(LiveActivity).
- (void) registerLiveActivityWithId: | (NSString *) | activityId | |
pushToken: | (NSData *) | token | |
completion: | (void(^)(NSError *_Nullable error)) | completion | |
Provided by category ThingSmartSDK(LiveActivity).
+ (void) setCountryCode: | (NSString *) | countryCode |
Set env to this country code
countryCode | link 86 for china |
Provided by category ThingSmartSDK(CountryCode).
+ (void) setCountryCode: | (NSString *) | countryCode |
Set env to this country code
countryCode | link 86 for china |
Provided by category ThingSmartSDK(CountryCode).
+ (void) setCountryCode: | (NSString *) | countryCode |
Set env to this country code
countryCode | link 86 for china |
Provided by category ThingSmartSDK(CountryCode).
+ (void) setCountryCode: | (NSString *) | countryCode |
Set env to this country code
countryCode | link 86 for china |
Provided by category ThingSmartSDK(CountryCode).
- (void) setDevicePushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app device alert pushing messages.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setDevicePushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app device alert pushing messages.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setDevicePushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app device alert pushing messages.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setDevicePushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app device alert pushing messages.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setDeviceToken: | (nullable NSData *) | token | |
withError: | (nullable NSError *) | error | |
Sets the device token pushing and error information.
token | The device token. |
error | An error occurs while processing the request. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setDeviceToken: | (nullable NSData *) | token | |
withError: | (nullable NSError *) | error | |
Sets the device token pushing and error information.
token | The device token. |
error | An error occurs while processing the request. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setDeviceToken: | (nullable NSData *) | token | |
withError: | (nullable NSError *) | error | |
Sets the device token pushing and error information.
token | The device token. |
error | An error occurs while processing the request. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setDeviceToken: | (nullable NSData *) | token | |
withError: | (nullable NSError *) | error | |
Sets the device token pushing and error information.
token | The device token. |
error | An error occurs while processing the request. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setFamilyPushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app home push messages.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setFamilyPushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app home push messages.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setFamilyPushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app home push messages.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setFamilyPushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app home push messages.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setMarketingPushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app marketing message pushing.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setMarketingPushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app marketing message pushing.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setMarketingPushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app marketing message pushing.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setMarketingPushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app marketing message pushing.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setNoticePushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app message pushing.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setNoticePushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app message pushing.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setNoticePushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app message pushing.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setNoticePushStatusWithStauts: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app message pushing.
enable | Specifies whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setPushStatusWithStatus: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app message pushing.
enable | A Boolean value indicates whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setPushStatusWithStatus: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app message pushing.
enable | A Boolean value indicates whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setPushStatusWithStatus: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app message pushing.
enable | A Boolean value indicates whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
- (void) setPushStatusWithStatus: | (BOOL) | enable | |
success: | (__nullable ThingSuccessHandler) | success | |
failure: | (__nullable ThingFailureError) | failure | |
Enables or disables app message pushing.
enable | A Boolean value indicates whether to enable or disable the function. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(PushNotification).
+ (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) startWithAppKey: | (NSString *) | appKey | |
secretKey: | (NSString *) | secretKey | |
Initialize ThingSmart SDK.
appKey | ThingSmart AppKey. |
secretKey | ThingSmart SecretKey. |
- (void) startWithAppKey: | (NSString *) | appKey | |
secretKey: | (NSString *) | secretKey | |
Initialize ThingSmart SDK.
appKey | ThingSmart AppKey. |
secretKey | ThingSmart SecretKey. |
- (void) startWithAppKey: | (NSString *) | appKey | |
secretKey: | (NSString *) | secretKey | |
Initialize ThingSmart SDK.
appKey | ThingSmart AppKey. |
secretKey | ThingSmart SecretKey. |
- (void) startWithAppKey: | (NSString *) | appKey | |
secretKey: | (NSString *) | secretKey | |
Initialize ThingSmart SDK.
appKey | ThingSmart AppKey. |
secretKey | ThingSmart SecretKey. |
- (void) updateLatitude: | (double) | latitude | |
longitude: | (double) | longitude | |
Report location if needed.
latitude | Latitude. |
longitude | Longitude. |
- (void) updateLatitude: | (double) | latitude | |
longitude: | (double) | longitude | |
Report location if needed.
latitude | Latitude. |
longitude | Longitude. |
- (void) updateLatitude: | (double) | latitude | |
longitude: | (double) | longitude | |
Report location if needed.
latitude | Latitude. |
longitude | Longitude. |
- (void) updateLatitude: | (double) | latitude | |
longitude: | (double) | longitude | |
Report location if needed.
latitude | Latitude. |
longitude | Longitude. |
- (void) upgradeVersion: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
SDK data upgrade.
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(Upgrade).
- (void) upgradeVersion: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
SDK data upgrade.
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(Upgrade).
- (void) upgradeVersion: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
SDK data upgrade.
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(Upgrade).
- (void) upgradeVersion: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
SDK data upgrade.
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSDK(Upgrade).
|
readnonatomicstrong |
Definition at line 91 of file ThingSmartSDK.h.
|
readwritenonatomicstrong |
Application group identifier. If you want to use the SDK in app extension, set appGroupId
before SDK initialized both in app & app extension.
Definition at line 45 of file ThingSmartSDK.h.
|
readnonatomicstrong |
ThingSmart AppKey.
Definition at line 71 of file ThingSmartSDK.h.
|
readnonatomicstrong |
Definition at line 104 of file ThingSmartSDK.h.
|
readwritenonatomicstrong |
App version, default value is from Info.plist -> CFBundleShortVersionString.
Definition at line 83 of file ThingSmartSDK.h.
|
readwritenonatomicassign |
Low-latency network links are preferred, default is YES
.
Definition at line 110 of file ThingSmartSDK.h.
|
readwritenonatomicassign |
Definition at line 107 of file ThingSmartSDK.h.
|
readwritenonatomicstrong |
Channel.
Definition at line 77 of file ThingSmartSDK.h.
|
readwritenonatomicassign |
Debug mode, default is false. Verbose log will print into console if opened.
Provided by category ThingSmartSDK(Log).
Definition at line 18 of file ThingSmartSDK+Log.h.
|
readwritenonatomicstrong |
Device product name. For example: iPhone XS Max.
Definition at line 86 of file ThingSmartSDK.h.
|
readwritenonatomicstrong |
Pushes deviceToken.
Provided by category ThingSmartSDK(PushNotification).
Definition at line 19 of file ThingSmartSDK+PushNotification.h.
|
readnonatomicstrong |
Provided by category ThingSmartSDK(DomainConfigurable).
Definition at line 32 of file ThingSmartDomainConfigurable.h.
|
readnonatomicstrong |
Provided by category ThingSmartSDK(DomainConfigurable).
Definition at line 34 of file ThingSmartDomainConfigurable.h.
|
readwritenonatomicassign |
Server environment, defaults is ThingEnvRelease. Please do not set in production environment.
Definition at line 59 of file ThingSmartSDK.h.
|
readnonatomicstrong |
Provided by category ThingSmartSDK(Event).
Definition at line 49 of file ThingSmartDomainConfigurable.h.
|
readnonatomicstrong |
Definition at line 95 of file ThingSmartSDK.h.
|
readwritenonatomicstrong |
App SDK lang, default value is from mainBundle -> preferredLocalizations -> [0].
Definition at line 89 of file ThingSmartSDK.h.
|
readwritenonatomicassign |
Latitude of the location.
Definition at line 53 of file ThingSmartSDK.h.
|
readwritenonatomicassign |
Positioning switch. True means include latitude and longitude in common parameters, while false means no include. Default is true.
Definition at line 50 of file ThingSmartSDK.h.
|
readwritenonatomicassign |
Longitude of the location.
Definition at line 56 of file ThingSmartSDK.h.
|
readnonatomicstrong |
Definition at line 96 of file ThingSmartSDK.h.
|
readnonatomicstrong |
Definition at line 93 of file ThingSmartSDK.h.
|
readnonatomicassign |
Definition at line 97 of file ThingSmartSDK.h.
|
readwritenonatomicstrong |
Pushes a token.
Pushes a token.
Pushes a token.
Pushes a token.
Provided by category ThingSmartSDK(PushNotification).
Definition at line 16 of file ThingSmartSDK+PushNotification.h.
|
readnonatomicstrong |
Definition at line 100 of file ThingSmartSDK.h.
|
readnonatomicassign |
Definition at line 101 of file ThingSmartSDK.h.
|
readnonatomicstrong |
Definition at line 105 of file ThingSmartSDK.h.
|
readwritenonatomicassign |
Whether to remove keys with NSNull
values from response JSON. Defaults to YES
.
Definition at line 68 of file ThingSmartSDK.h.
|
readnonatomicstrong |
ThingSmart SecretKey.
Definition at line 74 of file ThingSmartSDK.h.
|
readnonatomicstrong |
Provided by category ThingSmartSDK(DomainConfigurable).
Definition at line 35 of file ThingSmartDomainConfigurable.h.
|
readwritenonatomicassign |
Request need Https dns, default is NO
.
Definition at line 65 of file ThingSmartSDK.h.
|
readnonatomicassign |
Definition at line 102 of file ThingSmartSDK.h.
|
readnonatomicassign |
Definition at line 98 of file ThingSmartSDK.h.
|
readwritenonatomicassign |
Request need SSL Pinning, default is YES
.
Definition at line 62 of file ThingSmartSDK.h.
|
readnonatomicstrong |
UUID of the iOS/watchOS device. Will be created at app first launch.
Definition at line 80 of file ThingSmartSDK.h.
|
readwritenonatomicstrong |