Interface UserControllerBuilder
-
- All Implemented Interfaces:
public interface UserControllerBuilderThe 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.
-
-
Method Summary
Modifier and Type Method Description abstract UserControllerBuildercontext(Context context)Sets the context associated with the UserController. abstract UserControllerBuilderuserId(String userId)Sets the user id associated with the UserController. abstract UserControllerBuilderapplicationKey(String applicationKey)Sets the application key associated with the UserController. abstract UserControllerBuilderenvironmentHost(String environmentHost)Sets the environment host associated with the UserController. abstract UserControllerBuildercallbackHandler(CallbackHandler callbackHandler)Sets the callback handler (on a thread with a looper) the UserController will post callbacks on. abstract UserControllerBuilderpushConfiguration(PushConfiguration pushConfiguration)Sets the PushConfiguration to be used to deliver incoming call notifications. abstract UserControllerbuild()Creates the resulting UserController. -
-
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.
-
pushConfiguration
abstract UserControllerBuilder pushConfiguration(PushConfiguration pushConfiguration)
Sets the PushConfiguration to be used to deliver incoming call notifications. Currently Sinch SDK supports FCM and HMS notification providers. To create specific push configuration see FcmPushConfigurationBuilder or HmsPushConfigurationBuilder.
- Parameters:
pushConfiguration- Push Configuration to be used to deliver incoming notifications.
-
build
abstract UserController build()
Creates the resulting UserController.
-
-
-
-