I need to return an array of primitives ( a double[] ) as the result of a 
native call in a NativeInterface. However, even if I guess it is possible, 
I could not find any example of this in the documentation or the various 
cn1libs I already looked at. And I don't know what would be the correct 
mapping for this in the diiferent native languages (the mapping table given 
into 
https://www.codenameone.com/manual/advanced-topics.html#_native_interfaces is 
a complete mess with column headers that do not match the types in the rows 
(since when do Java have a NSData* type or Android a BOOL one for example?) 
and a "byte" column that isn't a language and do not make any sense (at 
least without any additional explanation, it is completely 
incomprehensible). You really shoud fix this part of the documentation!)

So, if, in my NativeInterface I define a function like this:

  public double[] myfunction();

what woud be its mapping in the various languages (c# for ioS, 
javascript...)?

for example for iOS would it be 

(double[]) myfunction {}

or

(NSData*) myfunction {}

or something else...?


same question if I would like to return a byte[] array instead of a 
double[] one

-- 
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/dfa74779-54c4-46ff-b55a-a923111225b6%40googlegroups.com.

Reply via email to