Fabric.Builder

public static class Fabric.Builder extends Object

Fluent API for creating Fabric instances.

Public Constructor Summary

Fabric.Builder(Context context)
Start building a new Fabric instance.

Public Method Summary

Fabric.Builder
appIdentifier(String appIdentifier)
Sets the Application Identifier to build with.
Fabric.Builder
appInstallIdentifier(String appInstallIdentifier)
Sets the Application Install Identifier to build with
Fabric
build()
Build the fabric instance
Fabric.Builder
debuggable(boolean enabled)
Enable Logging
Fabric.Builder
Fabric.Builder
handler(Handler handler)
This method was deprecated. this always uses the main handler
Fabric.Builder
initializationCallback(InitializationCallback<Fabric> initializationCallback)
Specify the InitializationCallbackto build with
Fabric.Builder
kits(Kit... kits)
Sets the Kit array to build with.
Fabric.Builder
logger(Logger logger)
Sets the Logger to build with.
Fabric.Builder
threadPoolExecutor(PriorityThreadPoolExecutor threadPoolExecutor)
Sets the PriorityThreadPoolExecutor to build with.

Inherited Method Summary

Public Constructors

public Fabric.Builder (Context context)

Start building a new Fabric instance.

Parameters
context

Public Methods

public Fabric.Builder appIdentifier (String appIdentifier)

Sets the Application Identifier to build with. This allows Fabric to report to another application in your organization. This must be set to an app identifier (package name) that has already been onboarded into the Fabric backend. This is usually your main package name ex: "com.example" has been onboarded into fabric.io and crashes from "com.example.free" should be reported to "com.example" as well

Parameters
appIdentifier

public Fabric.Builder appInstallIdentifier (String appInstallIdentifier)

Sets the Application Install Identifier to build with

Parameters
appInstallIdentifier

public Fabric build ()

Build the fabric instance

public Fabric.Builder debuggable (boolean enabled)

Enable Logging

Parameters
enabled

public Fabric.Builder executorService (ExecutorService executorService)

This method was deprecated.
Use threadPoolExecutor(io.fabric.sdk.android.services.concurrency.PriorityThreadPoolExecutor)

Parameters
executorService

public Fabric.Builder handler (Handler handler)

This method was deprecated.
this always uses the main handler

Parameters
handler

public Fabric.Builder initializationCallback (InitializationCallback<Fabric> initializationCallback)

Specify the InitializationCallbackto build with

Parameters
initializationCallback

public Fabric.Builder kits (Kit... kits)

Sets the Kit array to build with.

Parameters
kits

public Fabric.Builder logger (Logger logger)

Sets the Logger to build with.

Parameters
logger

public Fabric.Builder threadPoolExecutor (PriorityThreadPoolExecutor threadPoolExecutor)

Sets the PriorityThreadPoolExecutor to build with.

Parameters
threadPoolExecutor