Flutter SDK Reference
Class Credoappsdk
Credoappsdk
Represents the bridge between Flutter and native SDK.
Located in the file lib\credoappsdk.dart
Credoappsdk
Method execute()
execute()
Static method.
Collects data from the phone and returns locally.
Credoappsdk.execute()
Returns:
Type | Description |
---|---|
CredoappResult | Returns JSON dataset in compressed string format if collect action is succeeded |
Method setForceResolvePermissions()
setForceResolvePermissions()
Static method.
Sets the permissions request behavior. The default value is 'true'.
Impacts iOS platform only.
Note
The Music permission (
NSAppleMusicUsageDescription
- CredoAppMusic module) is requested automatically once SDK requests the data even thoughfalse
value
Credoappsdk.setForceResolvePermissions(bool force)
Parameters:
Name | Description | Type |
---|---|---|
force | If true then SDK requests permissions automatically otherwise SDK omits requesting permissions. The default value is true | bool |
Method setIgnorePermissions()
setIgnorePermissions()
The true
value allows data collection even if not all permissions are granted. The false
value restricts data collection until all permissions are granted (including normal permissions). The default value is true
.
Impacts Android platform only.
Credoappsdk.setIgnorePermissions(bool ignorePermissions)
Parameters:
Name | Description | Type |
---|---|---|
ignorePermissions | Requires boolean value true or false | bool |
Class CredoAppResult
CredoAppResult states for successful operation and contains a value
Proxy & Proxy Encrypt
Field Name | Type | Description |
---|---|---|
value | String | Returns collected data |
isFailure | bool | Returns false if the operation is completed successfully otherwise true. |
message | String | Returns message value if the operation is failed. |
code | String | Returns code value if the operation is failed. |
Error Codes
Status Code | Reason | Description |
---|---|---|
30 | Duplicated areas error | The extracting areas are duplicated. |
90 | Unknown error | Unexpected error occurred. |
Updated about 2 months ago