public static class OneDriveClient.Builder
extends java.lang.Object
| Constructor and Description |
|---|
OneDriveClient.Builder() |
| Modifier and Type | Method and Description |
|---|---|
OneDriveClient.Builder |
authenticator(IAuthenticator authenticator)
Sets the authenticator
|
OneDriveClient.Builder |
executors(IExecutors executors)
Sets the executors
|
OneDriveClient.Builder |
fromConfig(IClientConfig clientConfig)
Set this builder based on the client configuration
|
OneDriveClient.Builder |
httpProvider(IHttpProvider httpProvider)
Sets the httpProvider
|
void |
loginAndBuildClient(android.app.Activity activity,
ICallback<IOneDriveClient> callback)
Login a user and then returns the OneDriveClient asynchronously
|
OneDriveClient.Builder |
serializer(ISerializer serializer)
Sets the serializer
|
public OneDriveClient.Builder serializer(ISerializer serializer)
serializer - The serializerpublic OneDriveClient.Builder httpProvider(IHttpProvider httpProvider)
httpProvider - The httpProviderpublic OneDriveClient.Builder authenticator(IAuthenticator authenticator)
authenticator - The authenticatorpublic OneDriveClient.Builder executors(IExecutors executors)
executors - The executorspublic OneDriveClient.Builder fromConfig(IClientConfig clientConfig)
clientConfig - The client configurationpublic void loginAndBuildClient(android.app.Activity activity,
ICallback<IOneDriveClient> callback)
activity - The activity the UI should be fromcallback - The callback when the client has been built