コード例 #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);
        }
コード例 #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);
            });
        }
コード例 #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);
            }
        }
コード例 #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);
        }