setAllowMockLocation static method
- bool allow
Allows mocking location data.
Check the Test with mock locations guide for more information.
To avoid issues related to race conditions in your code use this API only if
modifying the compiled HyperTrackAllowMockLocation
AndroidManifest.xml/Info.plist
value is insufficient for your needs.
Example: if for some reason you aren't able to recompile with HyperTrackAllowMockLocation
set to YES
/true
for your prod app QA mock location tests and need to set
up the value in runtime.
Implementation
static void setAllowMockLocation(bool allow) {
_invokeSdkVoidMethod(
SdkMethod.setAllowMockLocation, serializeAllowMockLocation(allow));
}