aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-cordova
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-cordova')
-rw-r--r--kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt1
-rw-r--r--kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt2
2 files changed, 3 insertions, 0 deletions
diff --git a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt
index 885bfd08..40c731c7 100644
--- a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt
+++ b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/Camera.kt
@@ -251,6 +251,7 @@ data class CameraOptions(
val cameraDirection: Camera.Direction? = null
)
+@Suppress("ComplexMethod")
internal fun CameraOptions.toJs(): dynamic {
return obj {
if (quality != null) this.quality = quality
diff --git a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt
index 5617bf9b..e3de6af2 100644
--- a/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt
+++ b/kvision-modules/kvision-cordova/src/main/kotlin/pl/treksoft/kvision/cordova/StatusBar.kt
@@ -27,12 +27,14 @@ import kotlin.browser.window
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
+@Suppress("TopLevelPropertyNaming")
@JsName("StatusBar")
internal external val StatusBarJs: dynamic
/**
* Main object for Cordova status bar.
*/
+@Suppress("TooManyFunctions")
object StatusBar {
/**