I'm trying to create a shared interface for iOS and Android in kotlin multiplatform, and have this function that takes in a url. Is there a way I can make the iOS function take NSURL, but the android one take java.net.Url? Or should I just stick to String?
k
Kris Wong
10/23/2019, 5:58 PM
you can use an expect class with typealiases, but you may need a wrapper to unify the API, dependening on how you plan to use it