Skip to main content
Version: 0.84

ReactDispatcherHelper

Kind: class

Helper methods for the IReactDispatcher implementation.

Properties​

JSDispatcherIdleWaitCompletedEventName​

static readonly IReactPropertyName JSDispatcherIdleWaitCompletedEventName

Gets the name of the JSDispatcherIdleWaitCompletedEventName property for the IReactNotificationService. This notification name is to be used with IReactNotificationService.

JSDispatcherIdleWaitStartingEventName​

static readonly IReactPropertyName JSDispatcherIdleWaitStartingEventName

Gets the name of the JSDispatcherIdleWaitStartingEventName property for the IReactNotificationService. This notification name is to be used with IReactNotificationService.

JSDispatcherProperty​

static readonly IReactPropertyName JSDispatcherProperty

Deprecated: Use IReactContext.CallInvoker instead

Gets name of the JSDispatcher property for the IReactPropertyBag. Generally you can use IReactContext.JSDispatcher to get the value of this property for a specific React instance.

JSDispatcherTaskStartingEventName​

static readonly IReactPropertyName JSDispatcherTaskStartingEventName

Gets the name of the JSDispatcherTaskStartingEventName property for the IReactNotificationService. This notification name is to be used with IReactNotificationService.

UIDispatcherProperty​

static readonly IReactPropertyName UIDispatcherProperty

Gets name of the UIDispatcher property for the IReactPropertyBag. Generally you can use IReactContext.UIDispatcher to get the value of this property for a specific React instance.

UIThreadDispatcher​

static readonly IReactDispatcher UIThreadDispatcher

Gets or creates a IReactDispatcher for the current UI thread. This can be used with ReactInstanceSettings.UIDispatcher to launch a React instance from a non-UI thread. This API must be called from a UI thread. It will return null if called from a non-UI thread.

Methods​

CreateSerialDispatcher​

static IReactDispatcher CreateSerialDispatcher()

Creates a new serial dispatcher that uses thread pool to run tasks.