Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Like androidx.core.util.Pools.SynchronizedPool with the option to clear the pool (e.g. on memory pressure).

Link copied to clipboard

Tracks errors connecting to or received from the debug server. The debug server returns errors as json objects. This exception represents that error.

Link copied to clipboard
open class JavascriptException(jsStackTrace: String) : RuntimeException

A JS exception that was propagated to native. In debug mode, these exceptions are normally shown to developers in a redbox.

Link copied to clipboard

Lifecycle state for an Activity. The state right after pause and right before resume are the basically the same so this enum is in terms of the forward lifecycle progression (onResume, etc).

Link copied to clipboard
open class MapBuilder
Utility class for creating maps
Link copied to clipboard
Link copied to clipboard

This enum is used to determine the release level of a React Native application, which is then used to determine what React Native Features will be enabled in the application.

Link copied to clipboard
class ShakeDetector @JvmOverloads constructor(shakeListener: ShakeDetector.ShakeListener, minNumShakes: Int = 1) : SensorEventListener

Listens for the user shaking their phone. Allocation-less once it starts listening.

Link copied to clipboard
interface SurfaceDelegate

Interface for handling a surface in React Native. In mobile platform a surface can be any container that holds some View. For example, a Dialog can be a surface to wrap content view object as needed. In VR platform, a surface is provided by Shell panel app sdk, which requires custom logic to show/hide. NativeModules requires a surface will delegate interactions with the surface to a SurfaceDelegate.

Link copied to clipboard

Factory to create a SurfaceDelegate. The moduleName is needed to help the factory decide which surface to return SurfaceDelegate that the given module should use to interact with.

Link copied to clipboard

Detour for System.currentTimeMillis and System.nanoTime calls so that they can be mocked out in tests.