OptionalsurfaceThe surface ID of a surface in this process, such as the one that
XComponentController.getXComponentSurfaceId() reports, or 0 to name the
window by window.
OptionalwindowYour OHNativeWindow*, or null to name the window by surface_id.
A new OpenHarmony window for
RenderSessionHandle.setOhosSurfaceTarget().Name the window by
windowor bysurface_id. The session takes its own reference to the window, so you can release yours once the call returns.See
mln_ohos_surface_replacementin the C API reference.