-
public class IapContextCompose context helpers for providing OpenIapStore to UI tree Mirrors the SwiftUI environment pattern used in openiap-apple.
-
-
Field Summary
Fields Modifier and Type Field Description private final ProvidableCompositionLocal<OpenIapStore>LocalOpenIapStorepublic final static IapContextINSTANCE
-
Method Summary
Modifier and Type Method Description final OpenIapStorerememberOpenIapStore(Context context)Remember an OpenIapStore bound to application context final UnitOpenIapProvider(OpenIapStore store, Function0<Unit> content)Provider to attach OpenIapStore to the composition final ProvidableCompositionLocal<OpenIapStore>getLocalOpenIapStore()CompositionLocal for OpenIapStore -
-
Method Detail
-
rememberOpenIapStore
@Composable() final OpenIapStore rememberOpenIapStore(Context context)
Remember an OpenIapStore bound to application context
-
OpenIapProvider
@Composable() final Unit OpenIapProvider(OpenIapStore store, Function0<Unit> content)
Provider to attach OpenIapStore to the composition
-
getLocalOpenIapStore
final ProvidableCompositionLocal<OpenIapStore> getLocalOpenIapStore()
CompositionLocal for OpenIapStore
-
-
-
-