Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Binding a objC with RoboVM in Java

Hey I vitally need microphone access in my IOS app that I am making with libGDX and RoboVM. I read that I can bind a objC Class to a Java class. I read the documentation at https://github.com/robovm/robovm/wiki/The-Bro-Java-to-native-bridge However I am unable to make heads or tails of it.

So I have my mic.h and mic.m class files, however how do I bind these to Java functions? All I need is to get a meter rating.

Thanks! :)

-edit- If its important the mic class has two public functions init and read

like image 406
Krtko Avatar asked Apr 02 '26 00:04

Krtko


1 Answers

I wrote a blog answering my own question lol here it is:

http://www.sevenarmedsquid.com/help/robovmbinding

like image 169
Krtko Avatar answered Apr 04 '26 14:04

Krtko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!