我如何在zendrive iOS中测试事故检测

我正在我的iOS应用程序中集成
zendrive以进行事故检测.我已经通过他们的
getting started页面并将SDK集成到我的应用程序中以进行事故检测.我也访问了他们的
accident detection部分并按照说明操作.

我的问题是:
集成此SDK后,我将如何测试此功能?我的意思是我如何模拟我的代码上的事故并测试SDK.

有帮助吗?

最佳答案 似乎在他们较新版本的SDK(3.3.3)中,他们添加了一种模拟模拟事故的新方法.

所以根据他们的文件

After setting up the SDK in accident detection mode, you can test your
integration using ZendriveTest class. Refer to raiseMockAccident for
documentation.

#import <Zendrive/ZendriveTest.h>

...
// Ensure SDK is setup in ZendriveAccidentDetectionModeEnabled using 
// [Zendrive setupWithConfiguration:delegate:completionHandler:]

// Raise a mock accident. You can also test your implementations for different confidence levels.


 [ZendriveTest raiseMockAccident:ZendriveAccidentConfidenceHigh];

// On calling above method you will receive processAccidentDetected: callback on your delegate after 5 seconds.
// If you do not receive a callback, look at the logs to figure out possible integration issues.
点赞