From 27241fad325a2a4cd453c796d189f8bae3762bd4 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 8 Dec 2024 11:40:09 +0600 Subject: [PATCH] add default for device orientation start --- .../dev/inmo/tgbotapi/webapps/orientation/DeviceOrientation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/orientation/DeviceOrientation.kt b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/orientation/DeviceOrientation.kt index 9c4e753406..f24fbe9d19 100644 --- a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/orientation/DeviceOrientation.kt +++ b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/orientation/DeviceOrientation.kt @@ -7,7 +7,7 @@ external interface DeviceOrientation { val beta: Double val gamma: Double - fun start(params: DeviceOrientationStartParams, callback: (Boolean) -> Unit) + fun start(params: DeviceOrientationStartParams, callback: (Boolean) -> Unit = definedExternally) fun stop(callback: (Boolean) -> Unit) }