8000 公开setUri接口 · pythonzz/LuaViewSDK@30060be · GitHub
[go: up one dir, main page]

Skip to content

Commit 30060be

Browse files
author
tuoli
committed
公开setUri接口
1 parent f9b79b1 commit 30060be

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Android/LuaViewSDK/src/com/taobao/luaview/global/LuaView.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ public String getUri() {
412412
return mLuaViewCore != null ? mLuaViewCore.getUri() : null;
413413
}
414414

415+
public void setUri(String uri) {
416+
if (mLuaViewCore != null) {
417+
mLuaViewCore.setUri(uri);
418+
}
419+
}
420+
415421
public Globals getGlobals() {
416422
return mLuaViewCore != null ? mLuaViewCore.getGlobals() : null;
417423
}

Android/LuaViewSDK/src/com/taobao/luaview/global/LuaViewCore.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,12 @@ public String getUri() {
510510
return null;
511511
}
512512

513+
public void setUri(String uri) {
514+
if (mGlobals != null && mGlobals.getLuaResourceFinder() != null) {
515+
mGlobals.getLuaResourceFinder().setUri(uri);
516+
}
517+
}
518+
513519
public Globals getGlobals() {
514520
return mGlobals;
515521
}

0 commit comments

Comments
 (0)
0