Is there a way to access the android activity if the host platform is android #748
Unanswered
neerajshdev
asked this question in
Q&A
Replies: 1 comment 3 replies
-
If you only support Android, then you can easily pass (or inject) Activity via component constructors. If your are using Kotlin Multiplatform, then you can probably leverage Inversion of Control (IoC): create an interface with platform-specific implementations, where the Android impl would depend on Activity. All the above options assume that you are not using retained components. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a WalletComponent in which there is an action 'startPurchase()' Its implementation uses Google Play billing that requires the Android activity context.
Is there a similar way as my imaginary code below
Beta Was this translation helpful? Give feedback.
All reactions