-
- 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.
- Parameters:
userId- user id associated with the UserController.
-
applicationKey
abstract UserControllerBuilder applicationKey(String applicationKey)
Sets the application key associated with the UserController.
- Parameters:
applicationKey- application key associated with the UserController.
-
environmentHost
abstract UserControllerBuilder environmentHost(String environmentHost)
Sets the environment host associated with the UserController.
- Parameters:
environmentHost- Must not be null.
-
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 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- to be used to deliver incoming notifications.
-
build
abstract UserController build()
Creates the resulting UserController.
-
-
-
-