ReactDispatcherHelper
种类:class
IReactDispatcher 实现的辅助方法。
属性
JSDispatcherProperty
static readonly IReactPropertyName JSDispatcherProperty
获取 IReactPropertyBag 的 JSDispatcher 属性名称。通常,您可以使用 IReactContext.JSDispatcher 获取特定 React 实例此属性的值。
UIDispatcherProperty
static readonly IReactPropertyName UIDispatcherProperty
获取 IReactPropertyBag 的 UIDispatcher 属性名称。通常,您可以使用 IReactContext.UIDispatcher 获取特定 React 实例此属性的值。
UIThreadDispatcher
static readonly IReactDispatcher UIThreadDispatcher
获取或创建当前 UI 线程的 IReactDispatcher。这可以与 ReactInstanceSettings.UIDispatcher 一起使用,以便从非 UI 线程启动 React 实例。此 API 必须从 UI 线程调用。如果从非 UI 线程调用,它将返回 null。
方法
CreateSerialDispatcher
static IReactDispatcher CreateSerialDispatcher()
创建一个新的串行调度程序,该调度程序使用线程池来运行任务。