Class SearchViewModel.State

  • All Implemented Interfaces:

    
    public final class SearchViewModel.State
    
                        

    Represents the search screen state, used to render the required UI.

    • Constructor Detail

      • SearchViewModel.State

        SearchViewModel.State(String query, Boolean canLoadMore, List<Message> results, Boolean isLoading, Boolean isLoadingMore)
        Parameters:
        query - The current search query value.
        canLoadMore - If we've reached the end of messages, to stop triggering pagination.
        results - The found messages to render.
        isLoading - If we're currently loading data (initial load).
        isLoadingMore - If we're loading more items (pagination).