juliocbcotta
07/29/2021, 2:03 PM@file:JvmName("UriDeepLinkFactory")
...
fun UriDeepLink.Companion.from(uri: Uri): UriDeepLink {
return UriDeepLink(UriParameter(uri)) { scheme -> Schemes.valueOf(scheme) }
}
fun UriDeepLink.Companion.from(uriString: String): UriDeepLink {
return UriDeepLink.from(Uri.parse(uriString))
}
But when I try to access it from java I get the error at compile time
final UriDeepLink deepLink = UriDeepLinkFactory.from(operationDeepLink);
^
method UriDeepLinkFactory.from(Companion,Uri) is not applicable
(actual and formal argument lists differ in length)
method UriDeepLinkFactory.from(Companion,String) is not applicable
(actual and formal argument lists differ in length)
Any idea of how to fix it ?Roukanken
07/29/2021, 3:34 PM