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

Method initNativeView

packages/core/ui/slider/index.ios.ts:77–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 public initNativeView(): void {
78 super.initNativeView();
79 const nativeView = this.nativeViewProtected;
80 // default values
81 nativeView.minimumValue = 0;
82 nativeView.maximumValue = this.maxValue;
83 this._changeHandler = SliderChangeHandlerImpl.initWithOwner(new WeakRef(this));
84 nativeView.addTargetActionForControlEvents(this._changeHandler, 'sliderValueChanged', UIControlEvents.ValueChanged);
85 }
86
87 public disposeNativeView(): void {
88 this._changeHandler = null;

Callers

nothing calls this directly

Calls 1

initWithOwnerMethod · 0.45

Tested by

no test coverage detected