com.gs.common.client

ApiClient.Builder

The builder to add all needed apis,and create the instance of ApiClient.

When call build,a new ApiClient is created,and will replace the instance as the new one.


Supported Products:

All


Detail

Method

method description
public ApiClient.Builder setContext(Context context);

Set context and still return the target builder.The context means who will use gs apis.


Supported Products:

All

public ApiClient.Builder addApi(String api);

Add needed gs apis.Or you can think it to register the needed apis.


Supported Products:

All

public ApiClient build();

Create a new ApiClient,and replace the single instance as the new one.


Supported Products:

All

public void destroy();

Destroy ApiClient instance.So that all gs api memory resources will be released

Call this method,when you no longer to use any gs api again.


Supported Products:

All


Member & Constant

Member description