Interface UserControllerBuilder

  • All Implemented Interfaces:

    
    public interface UserControllerBuilder
    
                        

    The UserControllerBuilder class builds a new UserController instance. To construct a UserControllerBuilder, the required configuration parameters are:

    • Context.

    • Application Key.

    • Environment host.

    • User ID. It is optional to specify

    • Push configuration.

    • Callback 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
    • Constructor Detail

    • Method Detail

      • context

         abstract UserControllerBuilder context(Context context)

        Sets the context associated with the UserController.

        Parameters:
        context - Context associated with the UserController.
      • userId

         abstract UserControllerBuilder userId(String userId)

        Sets the user id associated with the UserController. If the app already has a scheme for user IDs (email addresses, phone numbers, customer numbers, etc.), the same ID could be used when configuring the UserController.

        Parameters:
        userId - User identifier associated with the UserController.
      • applicationKey

         abstract UserControllerBuilder applicationKey(String applicationKey)

        Sets the application key associated with the UserController.

        Parameters:
        applicationKey - Application key copied from your Sinch dashboard.
      • environmentHost

         abstract UserControllerBuilder environmentHost(String environmentHost)

        Sets the environment host associated with the UserController.

        Parameters:
        environmentHost - Environment host associated with the UserController.
      • callbackHandler

         abstract UserControllerBuilder callbackHandler(CallbackHandler callbackHandler)

        Sets the callback handler (on a thread with a looper) the UserController will post callbacks on.

        Parameters:
        callbackHandler - The handler this UserController will post callbacks on.