/// <summary>
 /// Start the MLLocation API.
 /// </summary>
 public static void Stop()
 {
     #if PLATFORM_LUMIN
     if (MLLocation.IsStarted)
     {
         MLLocation.Stop();
     }
     #endif
 }
Esempio n. 2
0
        void OnDestroy()
        {
            if (MLLocation.IsStarted)
            {
                MLLocation.Stop();
            }

            if (_privilegeRequester != null)
            {
                // Unregister event listener.
                _privilegeRequester.OnPrivilegesDone -= HandlePrivilegesDone;
            }
        }