ReactCoreInjection
种类:class
实验性
用于注入平台特定的实现,以创建针对非 XAML 平台的 react-native 目标。
方法
GetTopLevelWindowId
static uint64_t GetTopLevelWindowId(IReactPropertyBag properties)
实验性
获取活动顶级应用程序窗口的窗口句柄 HWND (作为 UInt64)。
MakeViewHost
static IReactViewHost MakeViewHost(ReactNativeHost host, ReactViewOptions viewOptions)
实验性
自定义 ReactViewInstances 使用此方法创建要连接的主机。
PostToUIBatchingQueue
static void PostToUIBatchingQueue(IReactContext context, ReactDispatcherCallback callback)
实验性
使用批处理队列向主 UI 调度程序发送内容
SetPlatformNameOverride
static void SetPlatformNameOverride(IReactPropertyBag properties, string platformName)
实验性
覆盖平台名称。这将改变从 metro 请求捆绑包时使用的平台。默认值:"windows"
SetTimerFactory
static void SetTimerFactory(IReactPropertyBag properties, TimerFactory timerFactory)
实验性
设置用于创建自定义计时器的工厂方法,用于不应使用系统调度计时器的环境。
SetTopLevelWindowId
static void SetTopLevelWindowId(IReactPropertyBag properties, uint64_t windowId)
实验性
设置活动顶级应用程序窗口的窗口句柄 HWND(作为 UInt64)。当在没有 XAML 的 ReactNativeWindow 情况下使用时,必须手动将其提供给 ReactInstanceSettings 对象,以使某些 API 正常工作。
SetUIBatchCompleteCallback
static void SetUIBatchCompleteCallback(IReactPropertyBag properties, UIBatchCompleteCallback xamlRoot)
实验性
设置 UI 批处理完成后要调用的回调。