/// <summary> /// Initializes the <see cref="ReactChoreographer"/> instance. /// </summary> public static void Initialize() { if (s_instance == null) { DispatcherHelpers.AssertOnDispatcher(); s_instance = new ReactChoreographer(); } }
/// <summary> /// Disposes the <see cref="ReactChoreographer"/> instance. /// </summary> public static void Dispose() { if (s_instance != null) { DispatcherHelpers.AssertOnDispatcher(); ((IDisposable)s_instance).Dispose(); s_instance = null; } }
/// <summary> /// Instantiates the <see cref="UIViewOperationQueueInstance"/>. /// </summary> /// <param name="reactContext">The React context.</param> /// <param name="nativeViewHierarchyManager"> /// The native view hierarchy manager associated with this instance. /// </param> /// <param name="reactChoreographer"> /// The choreographer associated with this instance. /// </param> public UIViewOperationQueueInstance(ReactContext reactContext, NativeViewHierarchyManager nativeViewHierarchyManager, IReactChoreographer reactChoreographer) { _nativeViewHierarchyManager = nativeViewHierarchyManager; _reactContext = reactContext; _reactChoreographer = reactChoreographer; }