MotionToast icon indicating copy to clipboard operation
MotionToast copied to clipboard

Some functions are not available in Java

Open VichitraMac opened this issue 4 years ago • 1 comments

Some functions are not available in Java because @JvmStatic is not added above the function declarations.

VichitraMac avatar Jan 13 '21 19:01 VichitraMac

If the class is object class in Kotlin

object class KotlinObject {
  fun method() {
  }
}

You should use INSTANCE in Java

KotlinObject.INSTANCE.method();

AlanChiou avatar Apr 30 '21 03:04 AlanChiou