I need to take an action whenever my TVML/TVJS Apple TV app becomes active again after having already been launched. It seems the onLaunch
app lifecycle event is only called when my app is launched from scratch. Is this possible using TVJS or do I have to use evaluateInJavaScriptContext
in the applicationDidBecomeActive
method in my AppDelegate
?
问问题
366 次
1 回答
2
它目前没有记录,但该App.onResume
属性似乎在 tvOS beta 3 中工作。
App.onResume = function (options) {
console.log("App resumed.");
console.log(options);
};
于 2015-10-20T21:00:49.080 回答