MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / run

Method run

CodenameOne/src/com/codename1/car/Car.java:139–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 currentContext = ctx;
138 Display.getInstance().callSerially(new Runnable() {
139 @Override
140 public void run() {
141 CarApplication app = application;
142 if (app == null) {
143 com.codename1.io.Log.p("Car: a head unit connected but no CarApplication was "
144 + "registered. Call Car.setApplication(...) from your app's init().");
145 return;
146 }
147 CarScreen root = app.onCreateRootScreen(ctx);
148 ctx.setRootScreen(root);
149 app.onCarConnected(ctx);
150 fireConnected(ctx);
151 }
152 });
153 return ctx;
154 }

Callers

nothing calls this directly

Calls 8

onCreateRootScreenMethod · 0.95
onCarConnectedMethod · 0.95
fireConnectedMethod · 0.95
onCarDisconnectedMethod · 0.95
fireDisconnectedMethod · 0.95
setRootScreenMethod · 0.80
pMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected