Magpie class

Constructors

Magpie()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addBoostContainerLifeCycleObserver(MagepiePageLifeCycleObserver observer) VoidCallback
注册载体页生命周期回调 @param observer 载体页生命周期回调
addContainerObserver(MagepiePageObserver observer) VoidCallback
注册页面组件生命周期回调 @param observer 页面组件生命周期回调
close(String id, {Map<String, dynamic> result, Map<String, dynamic> exts}) Future<bool>
关闭指定id的页面 @param id 页面实例的唯一id @param result 页面的结果数据信息 @param exts 拓展参数 @disc 相关参数将传至Native侧
closeCurrent({Map<String, dynamic> result, Map<String, dynamic> exts}) Future<bool>
关闭当前页面 @param result 页面的结果数据信息 @param exts 拓展参数 @disc 相关参数将传至Native侧
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
open(String url, {Map<String, dynamic> urlParams, Map<String, dynamic> exts}) Future<Map>
打开一个新的页面 @param url 页面路由协议 @param urlParams 页面路由参数 @param exts 拓展参数 @disc 路由参数将透传至Native侧,将由Native根据页面路由协议中的页面名称信息,打开新的载体页,并将对应的页面名,参数传递到新的Dart页面组件中进行页面初始化
registerDefaultPageBuilder(MagepiePageBuilder builder) → void
向载体页注册默认的页面组件 @param builder 页面组件的构造函数
registerPageBuilders(Map<String, MagepiePageBuilder> builders) → void
注册所有的页面组件 @param builders 所有页面组件的构造函数 (key:页面名称 value:页面组件的构造函数)
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

singleton Magpie
read-only

Static Methods

init({TransitionBuilder builder, PrePushRoute prePush, PostPushRoute postPush}) TransitionBuilder