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

Method _disableZoom

packages/core/ui/web-view/index.android.ts:135–142  ·  view source on GitHub ↗
(value: boolean)

Source from the content-addressed store, hash-verified

133 }
134
135 private _disableZoom(value: boolean) {
136 if (this.nativeView && value) {
137 const settings = this.nativeView.getSettings();
138 settings.setBuiltInZoomControls(false);
139 settings.setSupportZoom(false);
140 settings.setDisplayZoomControls(false);
141 }
142 }
143
144 [disableZoomProperty.setNative](value: boolean) {
145 this._disableZoom(value);

Callers 2

initNativeViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected