Closed prabinshrestha closed 2 weeks ago
interface PlatformState {
fun launchApp(id: String)
fun launchWindow(route: String)
}
expect fun rememberPlatformState()
actual fun rememberPlatformState () = Android PlatformState()
private class AndroidPlatformState: PlatformState {
}
Using an expect/actual function is the way to solve this.
How to open an activity on Android target, see the Android and Jetpack Compose documentation, or ask in the #compose-android Slack channel.
Hello, Is there any ways or workaround or sample to open external activity or app through intent for android and other implementation for ios using same codebase within compose multiplatform. If yes, please provide the hint.