TcrSdkInstance Class Reference
Inherits from | NSObject |
---|---|
Declared in | TcrSdkInstance.h TcrSdkInstance.m |
– setTcrConfig:error:
Set the AccessInfo and Token to TcrSdk
- (void)setTcrConfig:(TcrConfig *)tcrConfig error:(NSError **)error
Parameters
tcrConfig |
Session configuration information, which is obtained by the business backend calling the cloud API CreateAndroidInstancesAccessToken. |
---|
Discussion
Set the AccessInfo and Token to TcrSdk
Declared In
TcrSdkInstance.h
– createSessionWithParams:
Creates a new TcrSession instance.
- (TcrSession *)createSessionWithParams:(NSDictionary *)params
Parameters
params |
Dictionary containing TcrSession configuration parameters.
|
---|
Return Value
Newly created TcrSession instance, nil if creation fails.
Discussion
Initializes and returns a new TcrSession object with the specified parameters. Returns a non-nil pointer on success, nil on failure. The caller is responsible for managing the returned session’s lifecycle (automatically handled under ARC).
Declared In
TcrSdkInstance.h
– destroySession:
Destroys a session object.
- (void)destroySession:(TcrSession *)session
Parameters
session |
Session object to destroy. |
---|
Declared In
TcrSdkInstance.h
– getAndroidInstance
Retrieves the AndroidInstance operator object.
- (AndroidInstance *)getAndroidInstance
Return Value
AndroidInstance operator object, nil if uninitialized.
Discussion
Returns the operator instance for interacting with cloud Android devices. Returns nil if the SDK client hasn’t been properly initialized.
Declared In
TcrSdkInstance.h
– updateToken:
Updates access tokens for all instances.
- (void)updateToken:(NSString *)token
Parameters
token |
New access token string. |
---|
Discussion
Bulk updates access tokens for all created instances. This operation takes immediate effect, and all subsequent requests will use the new token for authentication.
Declared In
TcrSdkInstance.h