-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make BackHandler a internal public api
- Loading branch information
1 parent
5021171
commit 8d8ea02
Showing
6 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ator/src/commonMain/kotlin/cafe/adriel/voyager/navigator/internal/NavigatorBackHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...-navigator/src/commonWebMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.web.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
4 changes: 3 additions & 1 deletion
4
voyager-navigator/src/desktopMain/kotlin/cafe/adriel/voyager/navigator/internal/Actuals.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
5 changes: 3 additions & 2 deletions
5
voyager-navigator/src/iosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.uikit.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
4 changes: 3 additions & 1 deletion
4
...er-navigator/src/macosMain/kotlin/cafe.adriel.voyager.navigator.internal/Actuals.macos.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |