tcoulter / jockeyjs

Library to facilitate communication between iOS apps and JS apps running inside a UIWebView
MIT License
458 stars 99 forks source link

Composite Handlers #12

Closed paulpdaniels closed 6 years ago

paulpdaniels commented 11 years ago

One possible enhancement is to provide an easy mechanism for creating composite or chained handlers. Ideally, several aspects of the parent OS could then be baked into event handling.

For instance Android could provide a fluent interface of sorts:


jockey.bind("click").to(nativeOS(this).vibrate(45), 
                                nativeOS(this).toast("Click event", Toast.LENGTH_SHORT), 
                                myCustomHandler);

I am not sure what the equivalent iOS code would look like.

paulpdaniels commented 6 years ago

Closing as stale