-
public interface SurfaceDelegateInterface 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 voidcreateContentView(String appKey)Create the React content view that uses the appKey as the React application name abstract booleanisContentViewReady()Check if the content view is created and ready to be shown abstract voiddestroyContentView()Destroy the React content view to avoid memory leak abstract voidshow()Show the surface containing the React content view abstract voidhide()Hide the surface containing the React content view abstract booleanisShowing()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
-
-
-
-