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

Method getSplashId

src/android/SplashScreen.java:82–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 private int getSplashId() {
83 int drawableId = 0;
84 String splashResource = preferences.getString("SplashScreen", "screen");
85 if (splashResource != null) {
86 drawableId = cordova.getActivity().getResources().getIdentifier(splashResource, "drawable", cordova.getActivity().getClass().getPackage().getName());
87 if (drawableId == 0) {
88 drawableId = cordova.getActivity().getResources().getIdentifier(splashResource, "drawable", cordova.getActivity().getPackageName());
89 }
90 }
91 return drawableId;
92 }
93
94 @Override
95 protected void pluginInitialize() {

Callers 3

pluginInitializeMethod · 0.95
showSplashScreenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected