public static class NexmoClient.Builder extends NexmoClient.NexmoClientConfig
Builds new NexmoClient.
Build NexmoClient using minimal setup:
NexmoClient client = new NexmoClient.Builder().build(context);
Build NexmoClient with all settings:
  NexmoClient client = new NexmoClient.Builder()
      .restEnvironmentHost(restEndpoint)
      .environmentHost(endpoint)
      .endpointPath(endpointPath)
      .imageProcessingServiceUrl(ips)
      .logLevel(eLogLevel.NONE)
      .logKey(100)
      .statsInterval(1000)
      .iceServerUrls([urls])
      .useFirstIceCandidate([urls])
      .build(context);
 
 After construction the NexmoClient instance ca be retrieved:
NexmoClient.get();
| Constructor and Description | 
|---|
Builder()  | 
| Modifier and Type | Method and Description | 
|---|---|
NexmoClient.Builder | 
autoMediaReoffer(boolean autoMediaReoffer)
Sets the boolean value to decide whatever or not to use auto media reoffer for network connection changes. 
 | 
NexmoClient | 
build(android.content.Context context)
Initializes  
and return the instance | 
NexmoClient.Builder | 
endpointPath(java.lang.String endpointPath)
Sets Nexmo Conversation Websocket URL path suffix. 
 | 
NexmoClient.Builder | 
environmentHost(java.lang.String environmentHost)
Sets environment host URL. 
 | 
NexmoClient.Builder | 
environmentHostPinning(NexmoPinningConfig pin)
Sets HTTPS pin chain for ws environment Endpoint. 
 | 
NexmoClient.Builder | 
iceServerUrls(java.lang.String[] iceServerUrls)
Sets the default iceServers for RTCPeerConnection. 
 | 
NexmoClient.Builder | 
imageProcessingServiceUrl(java.lang.String imageProcessingServiceUrl)
Sets Nexmo IPS URL for image upload URL. 
 | 
NexmoClient.Builder | 
logKey(long logKey)
Sets log key. 
 | 
NexmoClient.Builder | 
logLevel(ILogger.eLogLevel logLevel)
Sets log level. 
 | 
NexmoClient.Builder | 
pushNotificationTTL(int pushNotificationTTL)
Sets TTL value in seconds for push notification for the specific device. 
 | 
NexmoClient.Builder | 
restEnvironmentHost(java.lang.String restEnvironmentHost)
Sets rest environment host URL. 
 | 
NexmoClient.Builder | 
restEnvironmentHostPinning(NexmoPinningConfig pin)
Sets HTTPS pin chain for Rest Environment Endpoint. 
 | 
NexmoClient.Builder | 
useFirstIceCandidate(boolean useFirstIceCandidate)
Sets the Boolean value to decide whatever or not to use first ice server for RTCPeerConnection. 
 | 
getEndpointPath, getEnvironmentHost, getIceServerUrls, getImageProcessingServiceUrl, getLogKey, getLogLevel, getPushNotificationTTL, getRestEnvironmentHost, getRestEnvironmentHostPKHash, getStatsInterval, getWsHostPKHash, getWsRandomizationFactor, getWsReconnectionDelay, getWsReconnectionDelayMax, getWsTimeout, isAutoMediaReoffer, isUseFirstIceCandidatepublic NexmoClient build(android.content.Context context)
and return the instancecontext - The Android Application context.NexmoClient.Builderpublic NexmoClient.Builder restEnvironmentHost(java.lang.String restEnvironmentHost)
restEnvironmentHost - rest environment host URL.NexmoClient.Builderpublic NexmoClient.Builder restEnvironmentHostPinning(NexmoPinningConfig pin)
pin - NexmoPinningConfigNexmoClient.Builderpublic NexmoClient.Builder environmentHost(java.lang.String environmentHost)
environmentHost - environment host URL.NexmoClient.Builderpublic NexmoClient.Builder environmentHostPinning(NexmoPinningConfig pin)
pin - NexmoPinningConfigNexmoClient.Builderpublic NexmoClient.Builder pushNotificationTTL(int pushNotificationTTL)
pushNotificationTTL - TTL for push notifications in seconds.NexmoClient.Builderpublic NexmoClient.Builder imageProcessingServiceUrl(java.lang.String imageProcessingServiceUrl)
imageProcessingServiceUrl - image processing service URL.NexmoClient.Builderpublic NexmoClient.Builder endpointPath(java.lang.String endpointPath)
endpointPath - Websocket URL path suffix.NexmoClient.Builderpublic NexmoClient.Builder logLevel(ILogger.eLogLevel logLevel)
ILogger.eLogLevel#NONE.logLevel - log level.NexmoClient.Builderpublic NexmoClient.Builder logKey(long logKey)
logKey - log key.NexmoClient.Builderpublic NexmoClient.Builder iceServerUrls(java.lang.String[] iceServerUrls)
iceServerUrls - ice servers URLs.NexmoClient.Builderpublic NexmoClient.Builder useFirstIceCandidate(boolean useFirstIceCandidate)
useFirstIceCandidate - whatever or not to use first ice server for RTCPeerConnection.NexmoClient.Builderpublic NexmoClient.Builder autoMediaReoffer(boolean autoMediaReoffer)
autoMediaReoffer - whatever or not to auto reoffer.NexmoClient.Builder