@aigens/aigens-sdk-core 0.0.28 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,18 @@ import Capacitor
|
|
33
33
|
|
34
34
|
handleOpenUrl()
|
35
35
|
|
36
|
+
// if let splashScreenPlugin = bridge?.plugin(withName: "SplashScreen") {
|
37
|
+
// let selector = NSSelectorFromString("hide:")
|
38
|
+
// if splashScreenPlugin.responds(to: selector) {
|
39
|
+
// let pluginCall = CAPPluginCall(callbackId: "hideSplashScreen", options: [:]) { (callResult, call) in
|
40
|
+
// aigensprint("callResult:\(callResult)")
|
41
|
+
// } error: { error in
|
42
|
+
// aigensprint("error:\(error)")
|
43
|
+
// }
|
44
|
+
// splashScreenPlugin.perform(selector, with: pluginCall)
|
45
|
+
// }
|
46
|
+
// }
|
47
|
+
|
36
48
|
}
|
37
49
|
|
38
50
|
private func handleOpenUrl() {
|
@@ -181,6 +193,12 @@ import Capacitor
|
|
181
193
|
|
182
194
|
descriptor.appendedUserAgentString = "AigensSDK"
|
183
195
|
|
196
|
+
if var splashScreenPlugin = descriptor.pluginConfigurations["SplashScreen"] as? [String: Any] {
|
197
|
+
splashScreenPlugin["launchShowDuration"] = 3
|
198
|
+
splashScreenPlugin["launchAutoHide"] = true
|
199
|
+
descriptor.pluginConfigurations["SplashScreen"] = splashScreenPlugin
|
200
|
+
}
|
201
|
+
|
184
202
|
return descriptor
|
185
203
|
}
|
186
204
|
|