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

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