public interface SinchClientBuilder
Modifier and Type | Method and Description |
---|---|
SinchClientBuilder |
applicationKey(java.lang.String applicationKey)
Sets the application key associated with the SinchClient.
|
SinchClient |
build()
Creates the resulting SinchClient.
|
SinchClientBuilder |
callerIdentifier(java.lang.String callerIdentifier)
Sets the caller identifier used when calling with PSTN.
|
SinchClientBuilder |
context(android.content.Context context)
Sets the context associated with the SinchClient.
|
SinchClientBuilder |
enableMediaHandover(boolean enableMediaHandover)
Enables and disables media handover functionality.
|
SinchClientBuilder |
enableVideoCalls(boolean enableVideoCalls)
Disables initialization of video calls if they are not needed.
|
SinchClientBuilder |
environmentHost(java.lang.String environmentHost)
Sets the environment host associated with the SinchClient.
|
SinchClientBuilder |
hmsApplicationId(java.lang.String applicationId)
Sets the HMS Application Id if the Huawei Push is to be used.
|
SinchClientBuilder |
hmsDeviceToken(java.lang.String deviceToken)
Sets the HMS Device Token if the Huawei Push is to be used.
|
SinchClientBuilder |
userId(java.lang.String userId)
Sets the user id associated with the SinchClient.
|
SinchClientBuilder context(android.content.Context context)
context
- Must not be null.SinchClientBuilder userId(java.lang.String userId)
userId
- Must not be null.SinchClientBuilder applicationKey(java.lang.String applicationKey)
applicationKey
- Must not be null.SinchClientBuilder environmentHost(java.lang.String environmentHost)
environmentHost
- Must not be null.SinchClientBuilder callerIdentifier(java.lang.String callerIdentifier)
callerIdentifier
- Optional. Must not be null.SinchClientBuilder enableVideoCalls(boolean enableVideoCalls)
enableVideoCalls
- Optional. Default value is 'true'SinchClientBuilder enableMediaHandover(boolean enableMediaHandover)
enableMediaHandover
- equal to false disables media handover from WiFi to cellular when WiFi is lost.SinchClientBuilder hmsDeviceToken(java.lang.String deviceToken)
deviceToken
- Must not be null.SinchClientBuilder hmsApplicationId(java.lang.String applicationId)
applicationId
- Must not be null.SinchClient build()
Copyright 2016, Sinch AB