Exemplo n.º 1
0
        /// <summary>
        /// To implement the transactional requirement, UI changes are only
        /// committed to the actual view hierarchy once a batch of JavaScript
        /// to native calls have been completed.
        /// </summary>
        public void OnBatchComplete()
        {
            var batchId = _batchId++;

            DispatchingViewUpdates?.Invoke(this, new EventArgs());
            _uiImplementation.DispatchViewUpdates(batchId);
        }
Exemplo n.º 2
0
        /// <summary>
        /// To implement the transactional requirement, UI changes are only
        /// committed to the actual view hierarchy once a batch of JavaScript
        /// to native calls have been completed.
        /// </summary>
        public void OnBatchComplete()
        {
            var batchId = _batchId++;

            Context.RunOnLayoutQueueThread(() =>
            {
                _uiImplementation.DispatchViewUpdates(batchId);
            });
        }
Exemplo n.º 3
0
        /// <summary>
        /// To implement the transactional requirement, UI changes are only
        /// committed to the actual view hierarchy once a batch of JavaScript
        /// to native calls have been completed.
        /// </summary>
        public void OnBatchComplete()
        {
            var batchId = _batchId++;

            using (Tracer.Trace(Tracer.TRACE_TAG_REACT_BRIDGE, "onBatchCompleteUI")
                   .With("BatchId", batchId))
            {
                _uiImplementation.DispatchViewUpdates(_eventDispatcher, batchId);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// To implement the transactional requirement, UI changes are only
        /// committed to the actual view hierarchy once a batch of JavaScript
        /// to native calls have been completed.
        /// </summary>
        public void OnBatchComplete()
        {
            var batchId = _batchId++;

            _uiImplementation.DispatchViewUpdates(batchId);
        }