-
public 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.
-
-
Method Summary
Modifier and Type Method Description abstract void
createContentView(String appKey)
Create the React content view that uses the appKey as the React application name abstract boolean
isContentViewReady()
Check if the content view is created and ready to be shown abstract void
destroyContentView()
Destroy the React content view to avoid memory leak abstract void
show()
Show the surface containing the React content view abstract void
hide()
Hide the surface containing the React content view abstract boolean
isShowing()
Check if the surface is currently showing -
-
Method Detail
-
createContentView
abstract void createContentView(String appKey)
Create the React content view that uses the appKey as the React application name
-
isContentViewReady
abstract boolean isContentViewReady()
Check if the content view is created and ready to be shown
-
destroyContentView
abstract void destroyContentView()
Destroy the React content view to avoid memory leak
-
show
abstract void show()
Show the surface containing the React content view
-
hide
abstract void hide()
Hide the surface containing the React content view
-
isShowing
abstract boolean isShowing()
Check if the surface is currently showing
-
-
-
-