Ejemplo n.º 1
0
    public void ChangeSmartItemFilter()
    {
        isSmartItemFilterActive = !isSmartItemFilterActive;
        view.SetSmartItemPressStatus(isSmartItemFilterActive);

        if (isSmartItemFilterActive)
        {
            FilterSmartItem();
        }
        else
        {
            isFilterActive = false;
            OnFilterRemove?.Invoke();
        }
    }
Ejemplo n.º 2
0
    public void OnSearchInputChanged(string currentSearchInput)
    {
        if (string.IsNullOrEmpty(currentSearchInput))
        {
            OnFilterRemove?.Invoke();
            return;
        }

        if (currentSearchInput.Length <= 1)
        {
            return;
        }
        isFilterActive = true;
        FilterAssets(currentSearchInput);
        OnFilterChange?.Invoke(filterObjects);
    }
Ejemplo n.º 3
0
    public void OnSearchInputChanged(string currentSearchInput)
    {
        if (string.IsNullOrEmpty(currentSearchInput))
        {
            OnFilterRemove?.Invoke();
            return;
        }

        if (currentSearchInput.Length <= 1)
        {
            return;
        }
        currentSearchFilter = currentSearchInput;

        isFilterActive = true;

        FilterAssets(currentSearchInput);
        OnFilterChange?.Invoke(filterObjects);
        if (searchApplyCoroutine != null)
        {
            CoroutineStarter.Stop(searchApplyCoroutine);
        }
        searchApplyCoroutine = CoroutineStarter.Start(ReportSearchAnalytic());
    }