/// <summary> /// Enqueues a operation to execute a UIBlock. /// </summary> /// <param name="block">The UI block.</param> public void EnqueueUIBlock(IUIBlock block) { EnqueueOperation(() => block.Execute(_nativeViewHierarchyManager)); }
/// <summary> /// Enqueues a operation to execute a UIBlock. /// </summary> /// <param name="block">The UI block.</param> /// <param name="tag">Optional react tag hint that triggers the choice of the dispatcher thread that executes the block .</param> public void PrependUIBlock(IUIBlock block, int?tag) { // Called on layout manager thread (tag.HasValue ? GetQueueByTag(tag.Value) : MainUIViewOperationQueue).PrependUIBlock(block); }
/// <summary> /// Prepends an operation to execute a UI block. /// </summary> /// <param name="block">The UI block.</param> public void PrependUIBlock(IUIBlock block) { PrependOperation(() => block.Execute(_nativeViewHierarchyManager)); }
/// <summary> /// Schedule a block to be executed on a UI thread. Useful if you need to execute /// view logic after all currently queued view updates have completed. /// </summary> /// <param name="block">The UI block.</param> /// <param name="tag">Optional react tag hint that triggers the choice of the dispatcher thread that executes the block .</param> public void AddUIBlock(IUIBlock block, int?tag) { _uiImplementation.AddUIBlock(block, tag); }
/// <summary> /// Schedule a block to be executed on the main UI thread. Useful if you need to execute /// need view logic before all currently queued view updates have completed. /// </summary> /// <param name="block">The UI block.</param> public void PrependUIBlock(IUIBlock block) { _uiImplementation.PrependUIBlock(block); }
/// <summary> /// Enqueues UIBlock to be executed. /// </summary> /// <param name="block">The UI block.</param> public void AddUIBlock(IUIBlock block) { _operationsQueue.EnqueueUIBlock(block); }
/// <summary> /// Schedule a block to be executed on the main UI thread. Useful if you need to execute /// view logic after all currently queued view updates have completed. /// </summary> /// <param name="block">The UI block.</param> public void AddUIBlock(IUIBlock block) { AddUIBlock(block, null); }
/// <summary> /// Prepens the UI block to be executed. /// </summary> /// <param name="block">The UI block.</param> public void PrependUIBlock(IUIBlock block) { _operationsQueue.PrependUIBlock(block); }
/// <summary> /// Schedule a block to be executed on the UI thread. Useful if you need to execute /// view logic after all currently queued view updates have completed. /// </summary> /// <param name="block">The UI block.</param> public void AddUIBlock(IUIBlock block) { Context.RunOnLayoutQueueThread(() => _uiImplementation.AddUIBlock(block)); }
/// <summary> /// Prepends the UI block to be executed on main dispatcher thread. /// </summary> /// <param name="block">The UI block.</param> public void PrependUIBlock(IUIBlock block) { // Always uses main dispatcher thread _operationsQueue.PrependUIBlock(block, null); }
/// <summary> /// Enqueues UI block to be executed on dispatcher thread associated with a react tag hint. /// </summary> /// <param name="block">The UI block.</param> /// <param name="tag">Optional react tag hint that triggers the choice of the dispatcher thread that executes the block .</param> public void AddUIBlock(IUIBlock block, int?tag) { _operationsQueue.EnqueueUIBlock(block, tag); }
/// <summary> /// Schedule a block to be executed on the UI thread. Useful if you need to execute /// view logic after all currently queued view updates have completed. /// </summary> /// <param name="block">The UI block.</param> public void AddUIBlock(IUIBlock block) { _uiImplementation.AddUIBlock(block); }
/// <summary> /// Enqueues a operation to execute a UIBlock. /// </summary> /// <param name="block">The UI block.</param> /// <param name="tag">Optional react tag hint that triggers the choice of the dispatcher thread that executes the block .</param> /// <remarks> /// <paramref name="tag"/> is not used, always runs on main dispatcher. /// </remarks> public void PrependUIBlock(IUIBlock block, int?tag) { // Called on layout manager thread PrependUIBlock(block); }
/// <summary> /// Enqueues a operation to execute a UIBlock. /// </summary> /// <param name="block">The UI block.</param> /// <param name="tag">Optional react tag hint that triggers the choice of the dispatcher thread that executes the block .</param> /// <remarks> /// <paramref name="tag"/> is not used, always runs on main dispatcher. /// </remarks> public void EnqueueUIBlock(IUIBlock block, int?tag) { // Called on layout manager thread EnqueueUIBlock(block); }