-
public class ChuckerChucker methods and utilities to interact with the library.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceChucker.ScreenAnnotation used to specify which screen of Chucker should be launched.
-
Field Summary
Fields Modifier and Type Field Description private final IntegerSCREEN_HTTPprivate final IntegerSCREEN_ERRORprivate final BooleanisOppublic final static ChuckerINSTANCE
-
Method Summary
Modifier and Type Method Description final static IntentgetLaunchIntent(Context context, Integer screen)Get an Intent to launch the Chucker UI directly. final static IntentgetLaunchIntent(Context context)Get an Intent to launch the Chucker UI directly. final static UnitregisterDefaultCrashHandler(ChuckerCollector collector)Configure the default crash handler of the JVM to report all uncaught Throwable to Chucker. final static UnitdismissTransactionsNotification(Context context)Method to dismiss the Chucker notification of HTTP Transactions final static UnitdismissErrorsNotification(Context context)Method to dismiss the Chucker notification of Uncaught Errors. final static UnitdismissNotifications(Context context)Dismisses all previous Chucker notifications. final IntegergetSCREEN_HTTP()final IntegergetSCREEN_ERROR()final BooleangetIsOp()Check if this instance is the operation one or no-op. -
-
Method Detail
-
getLaunchIntent
@Deprecated(message = This fun will be removed in 4.x release, replaceWith = @ReplaceWith(imports = {}, expression = Chucker.getLaunchIntent(context)), level = DeprecationLevel.WARNING) final static Intent getLaunchIntent(Context context, Integer screen)
Get an Intent to launch the Chucker UI directly.
-
getLaunchIntent
final static Intent getLaunchIntent(Context context)
Get an Intent to launch the Chucker UI directly.
- Parameters:
context- An Android Context.
-
registerDefaultCrashHandler
@Deprecated(message = This fun will be removed in 4.x release, replaceWith = @ReplaceWith(imports = {}, expression = ), level = DeprecationLevel.WARNING) final static Unit registerDefaultCrashHandler(ChuckerCollector collector)
Configure the default crash handler of the JVM to report all uncaught Throwable to Chucker. You may only use it for debugging purpose.
- Parameters:
collector- the ChuckerCollector
-
dismissTransactionsNotification
@Deprecated(message = This fun will be removed in 4.x release, replaceWith = @ReplaceWith(imports = {}, expression = Chucker.dismissNotifications(context)), level = DeprecationLevel.WARNING) final static Unit dismissTransactionsNotification(Context context)
Method to dismiss the Chucker notification of HTTP Transactions
-
dismissErrorsNotification
@Deprecated(message = This fun will be removed in 4.x release, replaceWith = @ReplaceWith(imports = {}, expression = Chucker.dismissNotifications(context)), level = DeprecationLevel.WARNING) final static Unit dismissErrorsNotification(Context context)
Method to dismiss the Chucker notification of Uncaught Errors.
-
dismissNotifications
final static Unit dismissNotifications(Context context)
Dismisses all previous Chucker notifications.
-
getSCREEN_HTTP
final Integer getSCREEN_HTTP()
-
getSCREEN_ERROR
final Integer getSCREEN_ERROR()
-
-
-
-