commonMain.com.slack.circuit.foundation.internal.BackHandler.kt Maven / Gradle / Ivy
The newest version!
// Copyright (C) 2023 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package com.slack.circuit.foundation.internal
import androidx.compose.runtime.Composable
/**
* A multiplatform abstraction over a BackHandler that's only implemented on Android and a no-op
* elsewhere.
*/
@Composable public expect fun BackHandler(enabled: Boolean = true, onBack: () -> Unit)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy