新增 app.sendBroadcast("inspect_layout_hierarchy"),app.sendBroadcast("inspect_layout_bounds");

This commit is contained in:
hyb1996
2018-10-15 00:52:20 +08:00
parent 429407ed2d
commit d1fb2c44f2
7 changed files with 90 additions and 10 deletions

View File

@@ -55,6 +55,11 @@ module.exports = function(runtime, global){
}
app.sendBroadcast = function(i){
if(typeof(i) == "string"){
if(runtime.getProperty("broadcast." + i)){
app.sendLocalBroadcastSync(app.intent({action: runtime.getProperty("broadcast." + i)}));
}
}
context.sendBroadcast(app.intent(i));
}