Here's an example from the Websocket cn1lib doing exactly this. https://github.com/shannah/cn1-websockets/blob/master/cn1-websockets-demo/native/ios/com_codename1_io_websocket_WebSocketNativeImplImpl.m#L86-L98 https://github.com/shannah/cn1-websockets/blob/master/cn1-websockets-demo/src/com/codename1/io/websocket/WebSocket.java#L114
Steve On Wed, Sep 4, 2019 at 7:46 AM Hasni Faiçal <[email protected]> wrote: > If you are experiencing an issue please mention the full platform your > issue applies to: > IDE: NetBeans/Eclipse/IDEA > Desktop OS > Simulator > Device > > As you mentioned in native iOS call back to call a function from iOS with > NSString arg > > *public static void callback(String arg) {* > *}* > > we should use *fromNSString* this a call like: > *fromNSString(CN1_THREAD_GET_STATE_PASS_ARG nsStringValue); * > > > how to do the same to call this interface from iOS: > > *public static void callback(byte[] arg) {* > *}* > > My objective is to call an interface with byte[] arg with NSData* argument > (NSData represent a data from an image) > > -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/codenameone-discussions/7a40c34d-e4b1-407a-bc55-f3378ae3c2ec%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/7a40c34d-e4b1-407a-bc55-f3378ae3c2ec%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWYw0oD968Y7zZh4qQrCcWeiPR6goiu87Vr1O10RmA7Tg%40mail.gmail.com.
