Beispiel #1
0
        private void StartSearch()
        {
            ToggleLockScreen(true);
            bool shouldReconnect = _autoReconnectOnShow && !_didAttemptReconnect;

            _wearableControl.SearchForDevices(OnDevicesUpdated, shouldReconnect, _autoReconnectTimeout);
            _didAttemptReconnect = true;
        }
Beispiel #2
0
        private void StartSearch()
        {
            if (DeviceSearching != null)
            {
                DeviceSearching();
            }

            _wearableControl.SearchForDevices(OnDevicesUpdated);

            ToggleLockScreen(true);
        }
Beispiel #3
0
        /// <summary>
        /// Initiates a search for devices.
        /// </summary>
        internal void StartSearch()
        {
            _canvas.enabled    = true;
            _canvasGroup.alpha = 1f;

            DisableCloseButton();

            _wearableControl.DisconnectFromDevice();

            var shouldReconnect = _autoReconnectOnShow && !_didAttemptReconnect;

            _wearableControl.SearchForDevices(OnDevicesUpdated, shouldReconnect, _autoReconnectTimeout);
            _didAttemptReconnect = true;
        }