This method will initialize the SDK, use this function in the AppDelegate
Parameters:
- key: The SDK key that was provided to you.
- secret: The SDK secret that was provided to you.
Usage Example:
This method will start the SDK.
Parameters:
- ViewController: The UIViewController that the SDK will be presented.
- IsMetric: This will tell the SDK how to present the result in metric or imperial.
- IsHeight: True if measuring height.
- onFinised: a callback that will be called after the user exits the SDK. The callback will contain SimpleResult.
SimpleResult
- result: The measurement result.
- error: The measurement error.
- isNotMeasured: True if noting was measured or the user didn’t save his measurement.
Usage Example:
This method will start OneClick Measurement.
Parameters:
- ViewController: The UIViewController that the SDK will be presented.
- IsMetric: This will tell the SDK how to present the result in metric or imperial.
- onFinised: a callback that will be called after the user exit the SDK. The callback will contain”OneClickResult”.
OneClickResult:
- heightResult: The height measurement result.
- widthResult: The width measurement result.
- depthResult: The depth measurement result.
- heightError: The height measurement error.
- widthError: The width measurement error.
- depthError: The depth measurement error.
- isNotMeasured: True if noting was measured or the user didn’t save his measurement.
Usage Example:
Comments
0 comments
Please sign in to leave a comment.