All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.slack.circuit.overlay.OverlayState.kt Maven / Gradle / Ivy

There is a newer version: 0.25.0
Show newest version
// Copyright (C) 2024 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package com.slack.circuit.overlay

import androidx.compose.runtime.ProvidableCompositionLocal
import androidx.compose.runtime.compositionLocalOf
import com.slack.circuit.overlay.OverlayState.UNAVAILABLE

/** A [ProvidableCompositionLocal] to expose the current [OverlayState] in the composition tree. */
public val LocalOverlayState: ProvidableCompositionLocal = compositionLocalOf {
  UNAVAILABLE
}

/** Represents the current state of the available [OverlayHost]. */
public enum class OverlayState {
  /** Indicates that overlays are not available. */
  UNAVAILABLE,

  /** Indicates that overlays are available but no overlay is currently showing. */
  HIDDEN,

  /** Indicates that an overlay is currently showing. */
  SHOWING,
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy