codenameone / BraintreeCodenameOne

Braintree (paypal mobile) API bindings for Codename One

Home Page:https://www.codenameone.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add params to iOS native code?

schreiby opened this issue · comments

Hi,

Thank you for making this library.

I was wondering if you could please guide me as to how to add extra parameters to the iOS native code; specifically adding a double and a boolean?

Right now I am attempting to build the project with this method signature but the build crashes during compilation:

-(void)showChargeUI:(NSString*)param val:(double)val before:(BOOL)before{ }

Can you please advise? I already modified the method that extends the NativeInterface in the main CN1 code, the .h class and the Android class. I have looked online for how to set up the method signature but am still having getting a build error so I realize something is wrong with my syntax. It would also be helpful to be able to add other params to the method in case of customizing the Drop-In Request.

Thank you again.

Hi,
I'm mostly around here to help developers get builds through and find what they need in the site. I suggest asking on one of our engineering support channels.
Our engineering team answers questions on stackoverflow or reddit within 24 hours.
Specifically: http://stackoverflow.com/tags/codenameone
https://www.reddit.com/r/cn1