Guest User

Untitled

a guest
Nov 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public int openAccessory() throws Exception { /* Open stuff */ }
  2. public int closeAccessory() throws IOException { /* Close stuff */ }
  3.  
  4. int AOAConnection::Open () {
  5. JNIEnvironmentAttacher jea(&this->JNIE);
  6. return JavaObject.callMethod<jint>("openAccessory");
  7. }
  8.  
  9. int AOAConnection::Close () {
  10. JNIEnvironmentAttacher jea(&this->JNIE);
  11. return JavaObject.callMethod<jint>("closeAccessory", "(V)I");
  12. }
  13.  
  14. return JavaObject.callMethod<jint>("openAccessory", "(V)I");
Add Comment
Please, Sign In to add comment