function complete

This commit is contained in:
王劲鹏
2020-02-27 16:13:14 +08:00
committed by osborn
parent f9f48d9c8a
commit 9764e720fc
8 changed files with 101 additions and 15 deletions

View File

@@ -55,6 +55,8 @@ NS_ASSUME_NONNULL_BEGIN
- (void)reload:(NSString *)script;
- (void)reInit;
- (void)onShow;
- (void)onHidden;

View File

@@ -96,6 +96,12 @@ - (void)reload:(NSString *)script {
[self onShow];
}
- (void)reInit {
self.rootNode.viewId = nil;
[self callEntity:DORIC_ENTITY_INIT, self.initialParams, nil];
[self callEntity:DORIC_ENTITY_CREATE, nil];
}
- (void)onShow {
[self callEntity:DORIC_ENTITY_SHOW, nil];
}