Package org.robovm.rt
Class Signals
java.lang.Object
org.robovm.rt.Signals
public class Signals extends Object
Provides a means for installing custom signal handlers without overriding
the signal handlers needed by RoboVM to handle
NullPointerExceptions
and StackOverflowErrors properly. This should be used when using
crash reporting services like TestFlight, Flurry or HockeyApp. The
initialization method for the crash reporting service SDK should be called
inside an Signals.InstallSignalsCallback using the
installSignals(InstallSignalsCallback) method.
NOTE! This should be called as early as possible in the app from the main thread and MUST be called before any other threads have been created.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSignals.InstallSignalsCallbackEncapsulates the user code which typically initializes a crash report service SDK or in some other way modifies signal handlers. -
Constructor Summary
Constructors Constructor Description Signals() -
Method Summary
Modifier and Type Method Description static voidinstallSignals(Signals.InstallSignalsCallback callback)Saves the current signal handlers mach ports essential for RoboVM to work correctly then calls the specifiedSignals.InstallSignalsCallbackand finally restores the saved signals chaining them to installed ones properly.static voidinstallSignals(Signals.InstallSignalsCallback callback, boolean preservePorts)
-
Constructor Details
-
Signals
public Signals()
-
-
Method Details
-
installSignals
Saves the current signal handlers mach ports essential for RoboVM to work correctly then calls the specifiedSignals.InstallSignalsCallbackand finally restores the saved signals chaining them to installed ones properly. -
installSignals
-