Interface CompatUserLookupHandler

  • All Implemented Interfaces:

    
    public interface CompatUserLookupHandler
    
                        

    Java compatibility interface for user lookup handler.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Function0<Unit> handleCompatUserLookup(String query, Function1<List<User>, Unit> callback) Handles user 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

    • Method Detail

      • handleCompatUserLookup

         abstract Function0<Unit> handleCompatUserLookup(String query, Function1<List<User>, Unit> callback)

        Handles user 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.
        callback - The callback to be invoked when the user lookup is completed.
        Returns:

        The cancel function to be invoked when the user lookup should be cancelled.