API Reference

public static class

Client.Builder

extends AbstractClient.Builder
java.lang.Object
   ↳ com.kinvey.java.core.AbstractKinveyClient.Builder
     ↳ com.kinvey.java.core.AbstractKinveyJsonClient.Builder
       ↳ com.kinvey.java.AbstractClient.Builder
         ↳ com.kinvey.nativejava.Client.Builder

Class Overview

Create a client for interacting with Kinvey's services from an Android Activity.

 Client myClient =  new Client.Builder(appKey, appSecret, getContext()).build();

All features of the library are be accessed through an instance of a client.

It is recommended to maintain a single instance of a Client while developing with Kinvey, either in an Activity, a Service, or an Application.

This Builder class is not thread-safe.

Summary

[Expand]
Inherited Fields
From class com.kinvey.java.AbstractClient.Builder
Public Constructors
Builder(String appKey, String appSecret)
Use this constructor to create a AbstractClient.Builder, which can be used to build a Kinvey AbstractClient with defaults set for the Java runtime.
Public Methods
Client build()
Client.Builder setBaseUrl(String baseUrl)
Client.Builder setJsonFactory(JsonFactory factory)
[Expand]
Inherited Methods
From class com.kinvey.java.AbstractClient.Builder
From class com.kinvey.java.core.AbstractKinveyJsonClient.Builder
From class com.kinvey.java.core.AbstractKinveyClient.Builder
From class java.lang.Object

Public Constructors

public Builder (String appKey, String appSecret)

Use this constructor to create a AbstractClient.Builder, which can be used to build a Kinvey AbstractClient with defaults set for the Java runtime.

Parameters
appKey Your Kinvey Application Key
appSecret Your Kinvey Application Secret

Public Methods

public Client build ()

Returns
  • an instantiated Kinvey Android Client, which contains factory methods for accessing various functionality.

public Client.Builder setBaseUrl (String baseUrl)

public Client.Builder setJsonFactory (JsonFactory factory)