onComplete for third-party API

It would be extremely useful to always have an “onComplete” event for third-party/platform services, like OpenFeint, AppStore, FacebookConnect and similar API.

Right now it’s impossible to init a service right after the other… if you init() all the systems, some will have priority over others (AppStore for instance) and they’ll eventually clutter each other with requests and forms.

You should be able to do:

[lua]function initOF()
openfeint.init(params,onComplete = function () facebook.login(params) end)
end

store.init(listener,onComplete = initOF)[/lua]

Edit: not mentioning OpenFeint has got some Facebook facility built-in already. Isn’t it possible to pass it over the Corona API directly ?

[import]uid: 5750 topic_id: 12115 reply_id: 312115[/import]