ReactSurfaceImpl

A class responsible for creating and rendering a full-screen React surface.

Constructors

Link copied to clipboard
constructor(context: Context, moduleName: String, @Nullable initialProps: Bundle)

Functions

Link copied to clipboard
open fun attach(host: ReactHost)
Attach a ReactHost to the ReactSurface.
Link copied to clipboard
Attaches a view to the surface.
Link copied to clipboard
open fun clear()
Clear surface
Link copied to clipboard
open fun createWithView(context: Context, moduleName: String, @Nullable initialProps: Bundle): ReactSurfaceImpl
Link copied to clipboard
open fun detach()
Detach the ReactSurface from its ReactHost.
Link copied to clipboard
open fun getContext(): Context
Returns context associated with the surface
Link copied to clipboard
open fun getModuleName(): String
Returns module name of this surface
Link copied to clipboard
open fun getSurfaceID(): Int
Returns surface ID of this surface
Link copied to clipboard
Returns React root view of this surface
Link copied to clipboard
open fun isRunning(): Boolean
Returns whether the surface is running or not
Link copied to clipboard
Prerender this surface
Link copied to clipboard
open fun start(): TaskInterface<Void>
Start running this surface
Link copied to clipboard
open fun stop(): TaskInterface<Void>
Stop running this surface
Link copied to clipboard
open fun updateInitProps(newProps: Bundle)