Closed paulpdaniels closed 6 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.
Closing as stale
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:
I am not sure what the equivalent iOS code would look like.