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

Function _onLivesync

packages/core/ui/core/view/view-common.ts:235–258  ·  view source on GitHub ↗
(context?: ModuleContext)

Source from the content-addressed store, hash-verified

233 }
234
235 public _onLivesync(context?: ModuleContext): boolean {
236 if (Trace.isEnabled()) {
237 Trace.write(`${this}._onLivesync(${JSON.stringify(context)})`, Trace.categories.Livesync);
238 }
239
240 let handled = false;
241
242 if (this._closeAllModalViewsInternal()) {
243 handled = true;
244 }
245
246 if (this._handleLivesync(context)) {
247 return true;
248 }
249
250 this.eachChildView((child: ViewCommon) => {
251 if (child._onLivesync(context)) {
252 handled = true;
253 return false;
254 }
255 });
256
257 return handled;
258 }
259
260 public _handleLivesync(context?: ModuleContext): boolean {
261 if (Trace.isEnabled()) {

Callers

nothing calls this directly

Calls 5

isEnabledMethod · 0.80
_handleLivesyncMethod · 0.80
writeMethod · 0.65
eachChildViewMethod · 0.45
_onLivesyncMethod · 0.45

Tested by

no test coverage detected