java_class!() { /* proc-macro */ }Expand description
A typed binding to one Java class, for day-platform-android and the pieces and parts built on it
(docs/android-jni.md). Use it as day_platform_android::java_class!, which re-exports it.
ⓘ
day_platform_android::java_class! {
DayCombo => dev.daybrite.day.piece.combobox.DayCombo,
methods {
static fn makeCombo(id: jlong, items: JString) -> android.view.View,
static fn setComboText(view: android.view.View, text: JString),
},
}The grammar is jni’s bind_java_type!. Names are Java’s, verbatim: the binding above calls
DayCombo.makeCombo, and a search for makeCombo finds both sides. The expansion also
registers the class for day-platform-android’s startup check and records an R8 keep rule for exactly
the class and members bound.