Class LocalUserLookupHandler

  • All Implemented Interfaces:
    io.getstream.chat.android.ui.common.feature.messages.composer.mention.UserLookupHandler

    
    public final class LocalUserLookupHandler
     implements UserLookupHandler
                        

    Local user lookup handler. It uses the local state to search for users.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<User> handleUserLookup(String query) Performs users lookup by given query in suspend way.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalUserLookupHandler

        LocalUserLookupHandler(ChatClient chatClient, String channelCid, QueryFilter<User> filter)
        Parameters:
        chatClient - Chat client used to query members.
        channelCid - The CID of the channel we are querying for members.
        filter - The filter used to filter the users.
      • LocalUserLookupHandler

        LocalUserLookupHandler(ChatClient chatClient, String channelCid)
        Parameters:
        chatClient - Chat client used to query members.
        channelCid - The CID of the channel we are querying for members.
    • Method Detail

      • handleUserLookup

         List<User> handleUserLookup(String query)

        Performs users lookup by given query in suspend way. It's executed on background, so it can perform heavy operations.

        Parameters:
        query - String as user input for lookup algorithm.
        Returns:

        List of users as result of lookup.