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

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

            _wearableControl.SearchForDevices(OnDevicesUpdated);

            ToggleLockScreen(true);
        }
示例#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;
        }