public interface UserControllerBuilder
The UserControllerBuilder class builds a new UserController instance. To construct a UserControllerBuilder, the required configuration parameters are:
Modifier and Type | Method and Description |
---|---|
UserControllerBuilder |
applicationKey(java.lang.String applicationKey)
Sets the application key associated with the UserController.
|
UserController |
build()
Creates the resulting UserController.
|
UserControllerBuilder |
callbackHandler(CallbackHandler callbackHandler)
Sets the callback handler (on a thread with a looper) the UserController will post callbacks on.
|
UserControllerBuilder |
context(android.content.Context context)
Sets the context associated with the UserController.
|
UserControllerBuilder |
environmentHost(java.lang.String environmentHost)
Sets the environment host associated with the UserController.
|
HmsPushBuilder |
hms()
Create nested builder to specify configuration for Huawei Push Notifications using HMS
(Huawei Mobile Services).
|
UserControllerBuilder |
userId(java.lang.String userId)
Sets the user id associated with the UserController.
|
UserControllerBuilder context(android.content.Context context)
context
- Must not be null.UserControllerBuilder userId(java.lang.String userId)
userId
- Must not be null.UserControllerBuilder applicationKey(java.lang.String applicationKey)
applicationKey
- Must not be null.UserControllerBuilder environmentHost(java.lang.String environmentHost)
environmentHost
- Must not be null.UserControllerBuilder callbackHandler(CallbackHandler callbackHandler)
callbackHandler
- Must not be null.HmsPushBuilder hms()
UserController build()
Copyright 2016, Sinch AB