-
Notifications
You must be signed in to change notification settings - Fork 1
License
yagitoshiro/TiCordova
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
TiCordova =========================================== Fire event from remote HTML via custom URL scheme "fireevent:https://my_event". GET STARTED ------------ 0. Create WebView and add event listener "my_event". 1. Open remote HTML file contains link tag like <a href="fireevent:https://my_event/my_data">Click here</a>. 2. Click the link. 3. Voila! INSTALL YOUR MODULE -------------------- 1. Run `build.py` which creates your distribution 2. cd to `/Library/Application Support/Titanium` 3. copy this zip file into the folder of your Titanium SDK REGISTER YOUR MODULE --------------------- Register your module with your application by editing `tiapp.xml` and adding your module. Example: <modules> <module version="0.1">org.selfkleptomaniac.ti.mod.ticordova</module> </modules> When you run your project, the compiler will know automatically compile in your module dependencies and copy appropriate image assets into the application. USING YOUR MODULE IN CODE ------------------------- To use your module in code, you will need to require it. For example, var my_module = require('org.selfkleptomaniac.ti.mod.ticordova'); var webview = my_module.createWebView({url:'https://example.com/', top:0, width: Ti.UI.FILL, height: Ti.UI.FILL}); webview.addEventListener('my_event', function(e){Ti.API.info(e);});
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published