MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _resumeNativeUpdates

Function _resumeNativeUpdates

packages/core/ui/core/view-base/index.ts:769–782  ·  view source on GitHub ↗
(type: SuspendType)

Source from the content-addressed store, hash-verified

767 }
768 }
769 public _resumeNativeUpdates(type: SuspendType): void {
770 if (type) {
771 this._suspendNativeUpdatesCount = this._suspendNativeUpdatesCount & ~type;
772 } else {
773 if ((this._suspendNativeUpdatesCount & SuspendType.IncrementalCountMask) === 0) {
774 throw new Error(`Invalid call to ${this}._resumeNativeUpdates`);
775 }
776 this._suspendNativeUpdatesCount--;
777 }
778
779 if (!this._suspendNativeUpdatesCount) {
780 this.onResumeNativeUpdates();
781 }
782 }
783
784 /**
785 * Allow multiple updates to be performed on the instance at once.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected