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.
-
-
Constructor Summary
Constructors Constructor Description LocalUserLookupHandler(ChatClient chatClient, String channelCid, QueryFilter<User> filter)LocalUserLookupHandler(ChatClient chatClient, String channelCid)
-
Method Summary
Modifier and Type Method Description List<User>handleUserLookup(String query)Performs users lookup by given query in suspend way. -
-
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.
-
-
-
-