public static final class CocoMediaClient.Configurator
extends java.lang.Object
| Constructor and Description |
|---|
Configurator() |
| Modifier and Type | Method and Description |
|---|---|
CocoMediaClient |
configure()
Finalize the properties and initialize the SDK.
|
CocoMediaClient.Configurator |
setAppAccessList(java.lang.String appAccessList)
Sets the capabilities which will be used by the app.
|
CocoMediaClient.Configurator |
setAuthListener(CocoMediaClient.AuthListener authListener)
Sets the listener for authentication.
|
CocoMediaClient.Configurator |
setCallbackHandler(NativeCallbacksInterface callbackHandler)
Sets the CallbackHandler (use this for TESTING purposes only).
|
CocoMediaClient.Configurator |
setClientId(java.lang.String clientId)
Sets the unique client id generated by the manage coco portal.
|
CocoMediaClient.Configurator |
setCurrentWorkingDirectory(java.lang.String cwdPath)
Sets the current working directory for the SDK to use.
|
CocoMediaClient.Configurator |
setDownloadDirectory(java.lang.String downloadPath)
Sets the temporary folder used by SDK.
|
CocoMediaClient.Configurator |
setHandler(NativeInterface nativeHandler)
Sets the NativeHandler (use this for TESTING purposes only).
|
java.lang.String |
toString() |
public CocoMediaClient.Configurator setCurrentWorkingDirectory(java.lang.String cwdPath)
cwdPath - Path to the folder which will be used for storing persistent datapublic CocoMediaClient.Configurator setAppAccessList(java.lang.String appAccessList)
appAccessList - The json with all required capabilities
eg: {"appCapabilities": [0]}public CocoMediaClient.Configurator setClientId(java.lang.String clientId)
clientId - The unique string assigned to this apppublic CocoMediaClient.Configurator setDownloadDirectory(java.lang.String downloadPath)
downloadPath - the location to the folderpublic CocoMediaClient.Configurator setHandler(NativeInterface nativeHandler)
nativeHandler - The handler to which all further calls will be forwarded topublic CocoMediaClient.Configurator setCallbackHandler(NativeCallbacksInterface callbackHandler)
callbackHandler - The handler to which all further callbacks will be forwarded topublic CocoMediaClient.Configurator setAuthListener(CocoMediaClient.AuthListener authListener)
authListener - The listener which will be triggered when the tokens expirepublic CocoMediaClient configure()
CocoMediaClientpublic java.lang.String toString()
toString in class java.lang.Object