MCPcopy Create free account
hub / github.com/apache/cordova-plugin-splashscreen / onMessage

Method onMessage

src/android/SplashScreen.java:184–204  ·  view source on GitHub ↗
(String id, Object data)

Source from the content-addressed store, hash-verified

182 }
183
184 @Override
185 public Object onMessage(String id, Object data) {
186 if (HAS_BUILT_IN_SPLASH_SCREEN) {
187 return null;
188 }
189 if ("splashscreen".equals(id)) {
190 if ("hide".equals(data.toString())) {
191 this.removeSplashScreen(false);
192 } else {
193 this.showSplashScreen(false);
194 }
195 } else if ("spinner".equals(id)) {
196 if ("stop".equals(data.toString())) {
197 getView().setVisibility(View.VISIBLE);
198 getView().requestFocus();
199 }
200 } else if ("onReceivedError".equals(id)) {
201 this.spinnerStop();
202 }
203 return null;
204 }
205
206 // Don't add @Override so that plugin still compiles on 3.x.x for a while
207 public void onConfigurationChanged(Configuration newConfig) {

Callers

nothing calls this directly

Calls 4

removeSplashScreenMethod · 0.95
showSplashScreenMethod · 0.95
getViewMethod · 0.95
spinnerStopMethod · 0.95

Tested by

no test coverage detected