Simbul/baker — Issue #225: Custom events fired by Baker
Author: al3d
Created: 2011-12-01 23:16:58+00:00
State: open

I've seen a few people mention animations and videos playing early/closing late when in three-card mode. Would it be possible in future versions for Baker to fire off events when certain things happen?

e.g. in three-card mode, baker fires `bakerloaded` or `bakerunloaded` events in javascript that can be captured by javascript:

```javascript
document.addEventListener('bakerloaded', function(e) {
// webview has finished rendering, start animations
});
document.addEventListener('bakerunloaded', function(e) {
// stop playing sounds
});
```

They do something similar in Phonegap, and while I recognize the different approaches of both platforms, it would be handy to have functionality like this added to Baker.

Thanks