private void DoSearch(string query)
        {
            _videoListViewController.SetLoadingState(true);
            _videoListViewController.SetContent(new List <YTResult>());

            YouTubeSearcher.Search(query, selectedLevel, delegate() {
                _videoListViewController.SetContent(YouTubeSearcher.searchResults);
                _videoListViewController.SetLoadingState(false);
            });
        }
예제 #2
0
        private void OnQueryAction(string query)
        {
            ResetSearchView();
            downloadButton.interactable = false;
            refineButton.interactable   = false;
            StartCoroutine(SearchLoading());

            YouTubeSearcher.Search(query, () =>
            {
                updateSearchResultsCoroutine = UpdateSearchResults(YouTubeSearcher.searchResults);
                StartCoroutine(updateSearchResultsCoroutine);
            });
        }