Buka konsol

CrashlyticsCore.Builder

public static class CrashlyticsCore.Builder extends Object

Fluent API for creating CrashlyticsCore instances.

Public Constructor Summary

Public Method Summary

CrashlyticsCore
build()
CrashlyticsCore.Builder
delay(float delay)
Specify the time (seconds) to wait before attempting to send any cached crash reports
CrashlyticsCore.Builder
disabled(boolean isDisabled)

Specify that this Crashlytics instance is disabled.

CrashlyticsCore.Builder
listener(CrashlyticsListener listener)
Specify a listener that listens to Crashes
CrashlyticsCore.Builder
pinningInfo(PinningInfoProvider pinningInfoProvider)
This method was deprecated. Setting a PinningInfoProvider to use for sending crash reports has been deprecated.

Inherited Method Summary

Public Constructors

public CrashlyticsCore.Builder ()

Public Methods

public CrashlyticsCore build ()

public CrashlyticsCore.Builder delay (float delay)

Specify the time (seconds) to wait before attempting to send any cached crash reports

Parameters
delay

public CrashlyticsCore.Builder disabled (boolean isDisabled)

Specify that this Crashlytics instance is disabled.

This is useful in situations where you want to use Crashlytics in a production build, but want to disable it in debug or development builds. For example,

new Crashlytics.Builder().disabled(BuildConfig.DEBUG).build();

Parameters
isDisabled

public CrashlyticsCore.Builder listener (CrashlyticsListener listener)

Specify a listener that listens to Crashes

Parameters
listener

public CrashlyticsCore.Builder pinningInfo (PinningInfoProvider pinningInfoProvider)

This method was deprecated.
Setting a PinningInfoProvider to use for sending crash reports has been deprecated.

Parameters
pinningInfoProvider