MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / focus

Function focus

packages/core/ui/editable-text-base/index.android.ts:153–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 public focus(): boolean {
154 const nativeView = this.nativeTextViewProtected;
155 if (!nativeView) {
156 return;
157 }
158
159 const result = super.focus();
160 if (result) {
161 ad.showSoftInput(this.nativeTextViewProtected);
162 }
163
164 return result;
165 }
166
167 public _setInputType(inputType: number): void {
168 const nativeView = this.nativeTextViewProtected;

Callers

nothing calls this directly

Calls 1

focusMethod · 0.45

Tested by

no test coverage detected