Object AsahiContext.Companion
-
- All Implemented Interfaces:
public class AsahiContext.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static AsahiContext.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final static AsahiContext
create()
final static AsahiContext
create(Map<String, Object> data)
创建上下文 final static Unit
registerGetter(AsahiContext.Getter getter)
final static Unit
registerSetter(AsahiContext.Setter setter)
-
-
Method Detail
-
create
final static AsahiContext create()
-
create
final static AsahiContext create(Map<String, Object> data)
创建上下文
- Parameters:
data
- MutableMap<String, Any> 基础Map,上下文会基于这个map创建- Returns:
AsahiContext 创建好的上下文
-
registerGetter
final static Unit registerGetter(AsahiContext.Getter getter)
-
registerSetter
final static Unit registerSetter(AsahiContext.Setter setter)
-
-
-
-