foreigner_class!(class Boo { self_type Boo; constructor Boo::new() -> Boo; method Boo::something(&self) -> i32; }); foreign_enum!( enum ControlItem { GNSS = ControlItem::GnssWorking, GPS_PROVIDER = ControlItem::AndroidGPSOn, } ); foreigner_class!(class Foo { self_type Foo; constructor Foo::default() -> Foo; method Foo::f1(&self) -> Option; method Foo::f2(&self) -> Option; method Foo::f3(&self) -> Option; method Foo::f4(&self) -> Option; method Foo::f5(&self) -> Option<&Boo>; method Foo::f6(&self) -> Option; method Foo::f7(&self) -> Option; method Foo::f8(&self) -> Option<&str>; method Foo::f9(&self) -> Option; method Foo::f10(&self) -> Option; });