언어 설정

Menu
Sites
Language
NPRuntime - Native and Web application communication

Can someone explain how NPRuntime example works?

I can see that we create an object in our HTML Code

<object height="0" id="NPRuntimeMatrix" type="application/test" width="0"></object>

but in the main.js how can we know what methods are available for call from the native code?

How is thge connection implemented? Can someone post a sample code with the source code of the .cpp files?

In the SDK sample for some reason there is no source code of the native library. Just the .so file which is not usefull.

 

Thanks in advance.

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 댓글
Lakshmi Grandhi
Hi, I am looking into your post, will get back you
Alex Dem
I believe Web app and NPPlugin communicate via atribute type="application/test" : here 'test' is native plugin's MIME type... this mime type is contained in libs ...\plugins\arm\libNPPlugin.so ...\plugins\x86\libNPPlugin.so some useful info with example how to call native plugin here; : https://developer.mozilla.org/en-US/docs/Gecko_Plugin_API_Reference/Scripting_plugins
Jihoon Chung
Hi, There is quite simple template for build npplugin so in the native application sample menu. It will be very helpful to build npplugin so.
Andrade

Hi Jihoon Chung,

I found the sample NPRuntime from the web apps samples menu, but the one you said in the previous message "There is quite simple template for build npplugin so in the native application sample menu" I couldn't find.

Is this sample still present in the SDK?

What is its name?

If not, do you have it? Could share with me?

Thanks,

Wagner Andrade