Skip to content

Commit

Permalink
Promote NavigationScreenLifecycleProvider API to Stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSrSouza committed Dec 9, 2023
1 parent 6bedb44 commit a0bac5a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,16 @@ package cafe.adriel.voyager.core.lifecycle

import androidx.compose.runtime.ProvidableCompositionLocal
import androidx.compose.runtime.staticCompositionLocalOf
import cafe.adriel.voyager.core.annotation.ExperimentalVoyagerApi
import cafe.adriel.voyager.core.screen.Screen

@ExperimentalVoyagerApi
public val LocalNavigatorScreenLifecycleProvider: ProvidableCompositionLocal<NavigatorScreenLifecycleProvider> =
staticCompositionLocalOf { DefaultNavigatorScreenLifecycleProvider() }

/**
* Can provides a list of ScreenLifecycleOwner for each Screen in the Navigator stack.
*/
@ExperimentalVoyagerApi
public interface NavigatorScreenLifecycleProvider {

@ExperimentalVoyagerApi
public fun provide(screen: Screen): List<ScreenLifecycleContentProvider>
}

Expand Down

0 comments on commit a0bac5a

Please sign in to comment.