Tolriq
11/03/2018, 7:03 PMpublic final class Cast {
public static final Cast.CastApi CastApi;
private Cast() {
}
public interface CastApi {
}
}
Accessing the static final field from Kotlin seems impossible AS always think I'm referring to the interface and not the field, is there any trick for that?elizarov
11/03/2018, 7:13 PMval api: Cast.CastApi = Cast.CastApi
It resolves to type at the left and to static variable at the right.Tolriq
11/03/2018, 7:17 PMCast.CastApi.function()
and that does not work. Using a val works and allows me to remove a Java file that I used as a bridge.elizarov
11/04/2018, 4:40 AMCast.CastApi
and the a short name CastApi
would resolve to a variable so that you can use its methods with CastApi.method()
Tolriq
11/04/2018, 12:19 PMelizarov
11/04/2018, 12:52 PM