EmbraceSamples

public class EmbraceSamples

Helps to verify and test embrace SDK integration. it allows users to execute code that automatically verifies the integration by calling the verifyIntegration method. It also provides example code to generate ANR and JVM/NDK crashes

Functions

Link copied to clipboard
public final static Unit causeNdkIllegalInstruction()

Throws a ndk SigIllegalInstruction

Link copied to clipboard
public final static Unit throwJvmException()

Throw a custom JVM crash to be part of current session.

Link copied to clipboard
public final static Unit triggerAnr()

Force a short ANR that lasts 4 seconds

Link copied to clipboard
public final static Unit triggerLongAnr()

Force a long ANR that lasts 30 seconds

Link copied to clipboard
public final static Unit verifyIntegration()

Starts an automatic verification of the following Embrace features:

Properties

Link copied to clipboard
public final static EmbraceSamples INSTANCE