This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/iOS/Pod/Classes/DoricContextManager.h
2019-08-14 10:08:33 +08:00

26 lines
500 B
Objective-C

//
// DoricContextManager.h
// Doric
//
// Created by pengfei.zhou on 2019/7/29.
//
#import <Foundation/Foundation.h>
#import "DoricContext.h"
NS_ASSUME_NONNULL_BEGIN
@interface DoricContextManager : NSObject
+ (instancetype)instance;
- (void)createContext:(DoricContext *)context script:(NSString *)script source:(NSString *)source;
- (void)destroyContext:(DoricContext *)context;
- (DoricContext *)getContext:(NSString *)contextId;
- (NSArray *)aliveContexts;
@end
NS_ASSUME_NONNULL_END