diff --git a/voyager-navigator/src/androidMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt b/voyager-navigator/src/androidMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt index 72894e09..0ac5d4fc 100644 --- a/voyager-navigator/src/androidMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt +++ b/voyager-navigator/src/androidMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt @@ -2,6 +2,8 @@ package cafe.adriel.voyager.navigator.internal import androidx.activity.compose.BackHandler import androidx.compose.runtime.Composable +import cafe.adriel.voyager.core.annotation.InternalVoyagerApi +@InternalVoyagerApi @Composable -internal actual fun BackHandler(enabled: Boolean, onBack: () -> Unit) = BackHandler(enabled, onBack) +public actual fun BackHandler(enabled: Boolean, onBack: () -> Unit): Unit = BackHandler(enabled, onBack) diff --git a/voyager-navigator/src/commonMain/kotlin/cafe/adriel/voyager/navigator/internal/NavigatorBackHandler.kt b/voyager-navigator/src/commonMain/kotlin/cafe/adriel/voyager/navigator/internal/NavigatorBackHandler.kt index 6eca94e9..ce0467a1 100644 --- a/voyager-navigator/src/commonMain/kotlin/cafe/adriel/voyager/navigator/internal/NavigatorBackHandler.kt +++ b/voyager-navigator/src/commonMain/kotlin/cafe/adriel/voyager/navigator/internal/NavigatorBackHandler.kt @@ -1,11 +1,13 @@ package cafe.adriel.voyager.navigator.internal import androidx.compose.runtime.Composable +import cafe.adriel.voyager.core.annotation.InternalVoyagerApi import cafe.adriel.voyager.navigator.Navigator import cafe.adriel.voyager.navigator.OnBackPressed +@InternalVoyagerApi @Composable -internal expect fun BackHandler(enabled: Boolean, onBack: () -> Unit) +public expect fun BackHandler(enabled: Boolean, onBack: () -> Unit) @Composable internal fun NavigatorBackHandler( diff --git a/voyager-navigator/src/commonWebMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.web.kt b/voyager-navigator/src/commonWebMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.web.kt index 4b686e2e..51b0101d 100644 --- a/voyager-navigator/src/commonWebMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.web.kt +++ b/voyager-navigator/src/commonWebMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.web.kt @@ -1,6 +1,8 @@ package cafe.adriel.voyager.navigator.internal import androidx.compose.runtime.Composable +import cafe.adriel.voyager.core.annotation.InternalVoyagerApi +@InternalVoyagerApi @Composable -internal actual fun BackHandler(enabled: Boolean, onBack: () -> Unit) = Unit +public actual fun BackHandler(enabled: Boolean, onBack: () -> Unit): Unit = Unit diff --git a/voyager-navigator/src/desktopMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt b/voyager-navigator/src/desktopMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt index 4b686e2e..51b0101d 100644 --- a/voyager-navigator/src/desktopMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt +++ b/voyager-navigator/src/desktopMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt @@ -1,6 +1,8 @@ package cafe.adriel.voyager.navigator.internal import androidx.compose.runtime.Composable +import cafe.adriel.voyager.core.annotation.InternalVoyagerApi +@InternalVoyagerApi @Composable -internal actual fun BackHandler(enabled: Boolean, onBack: () -> Unit) = Unit +public actual fun BackHandler(enabled: Boolean, onBack: () -> Unit): Unit = Unit diff --git a/voyager-navigator/src/iosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.uikit.kt b/voyager-navigator/src/iosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.uikit.kt index 908fe0d3..51b0101d 100644 --- a/voyager-navigator/src/iosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.uikit.kt +++ b/voyager-navigator/src/iosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.uikit.kt @@ -1,7 +1,8 @@ package cafe.adriel.voyager.navigator.internal import androidx.compose.runtime.Composable +import cafe.adriel.voyager.core.annotation.InternalVoyagerApi -// TODO: use ios backstack +@InternalVoyagerApi @Composable -internal actual fun BackHandler(enabled: Boolean, onBack: () -> Unit) = Unit +public actual fun BackHandler(enabled: Boolean, onBack: () -> Unit): Unit = Unit diff --git a/voyager-navigator/src/macosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.macos.kt b/voyager-navigator/src/macosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.macos.kt index 4b686e2e..51b0101d 100644 --- a/voyager-navigator/src/macosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.macos.kt +++ b/voyager-navigator/src/macosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.macos.kt @@ -1,6 +1,8 @@ package cafe.adriel.voyager.navigator.internal import androidx.compose.runtime.Composable +import cafe.adriel.voyager.core.annotation.InternalVoyagerApi +@InternalVoyagerApi @Composable -internal actual fun BackHandler(enabled: Boolean, onBack: () -> Unit) = Unit +public actual fun BackHandler(enabled: Boolean, onBack: () -> Unit): Unit = Unit