4:41 what's that safetynet 18.0.1 dependency ? is it necessary ?
@ismoilova_shahina
9 ай бұрын
thanks Sohail
@nomuchohan
Жыл бұрын
What if I want to call the LoginDialog in another composable function and then call that function in my MainActivity. How do I pass the parameter to .setActivity() then? Please revert back
@YoursSohailYT
Жыл бұрын
Ideally all the business logic should not be in the UI layer, it should be handled in data layer and then just used by the UI layer. So in this case you can create a wrapper composable on top of LoginDialog and pass the required parameters down the functions. For .setActivity the context is need which can be passed from the composable the function is getting called from. Hope this answers your query.
Пікірлер: 4