IInternalCompositionRootView
类型:接口
实验性
自定义 ViewComponent 需要实现此接口,以便能够使用允许自定义合成器的合成上下文提供自定义视觉效果。这仅适用于需要支持在具有自定义合成器的 RNW 实例中运行的自定义组件。大多数自定义组件只需覆盖 ViewComponentView 上的 CreateVisual。此接口将在未来版本中移除
属性
InternalRootVisual
IVisual
InternalRootVisual
与 ReactNativeIsland 关联的 RootVisual(未解析的引用)。必须设置它才能显示任何 React UI 元素。
方法
OnMounted
void OnMounted
()
OnUnmounted
void OnUnmounted
()
SendMessage
int64_t SendMessage
(uint32_t Msg, uint64_t WParam, int64_t LParam)
将输入转发到 RootView。仅当不使用 ContentIslands 时才需要
SetWindow
void SetWindow
(uint64_t hwnd)
输入来源的宿主窗口。仅当不使用 ContentIslands 时才需要