Skip to content

How to add params to iOS native code? #1

@schreiby

Description

@schreiby

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions