Capture.Builder

public static class Builder

Constructors

Builder

public Builder(Context ctx)

Methods

appKey

public Builder appKey(AppKey appKey)

Provide an appkey explicitly

If no appkey is provided, the Android client will try to load it from the AndroidManifest.

Parameters:
  • appKey

build

public CaptureClient build()

enableLogging

public Builder enableLogging(boolean b)

Enable verbose logging in the Capture client

Usage:

Capture.builder()
  .enableLogging(BuildConfig.DEBUG)
  .build();
Parameters:
  • b – false to leave logging disabled
Returns:

the builder

enableLogging

public Builder enableLogging(int level)

Enable logs above a certain level in the Capture client

Parameters:
  • level – one of Log.VERBOSE, Log.DEBUG, Log.INFO, Log.WARN, or Log.ERROR
Returns:

the builder