Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add params to iOS native code? #1

Open
schreiby opened this issue Jan 27, 2022 · 1 comment
Open

How to add params to iOS native code? #1

schreiby opened this issue Jan 27, 2022 · 1 comment

Comments

@schreiby
Copy link

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.

@shai-almog
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants