/// <summary> /// Start the MLLocation API. /// </summary> public static void Stop() { #if PLATFORM_LUMIN if (MLLocation.IsStarted) { MLLocation.Stop(); } #endif }
void OnDestroy() { if (MLLocation.IsStarted) { MLLocation.Stop(); } if (_privilegeRequester != null) { // Unregister event listener. _privilegeRequester.OnPrivilegesDone -= HandlePrivilegesDone; } }