提交 c007e116 authored 作者: JarvanMo's avatar JarvanMo

docs

上级 c36b01ce
...@@ -22,6 +22,7 @@ class Fluwx { ...@@ -22,6 +22,7 @@ class Fluwx {
Stream<Map> get weChatResponseUpdate => _responseStreamController.stream; Stream<Map> get weChatResponseUpdate => _responseStreamController.stream;
///the [model] should not be null
static Future registerApp(RegisterModel model) async { static Future registerApp(RegisterModel model) async {
return await _channel.invokeMethod("registerApp", model.toMap()); return await _channel.invokeMethod("registerApp", model.toMap());
} }
...@@ -37,7 +38,12 @@ class Fluwx { ...@@ -37,7 +38,12 @@ class Fluwx {
void dispose() { void dispose() {
_responseStreamController.close(); _responseStreamController.close();
} }
///the [model] can not be null
///see [WeChatShareWebPageModel]
/// [WeChatShareTextModel]
///[WeChatShareVideoModel]
///[WeChatShareMusicModel]
///[WeChatShareImageModel]
Future share(WeChatShareModel model) async { Future share(WeChatShareModel model) async {
if (_shareModelMethodMapper.containsKey(model.runtimeType)) { if (_shareModelMethodMapper.containsKey(model.runtimeType)) {
return await _channel.invokeMethod( return await _channel.invokeMethod(
......
...@@ -3,6 +3,9 @@ class RegisterModel { ...@@ -3,6 +3,9 @@ class RegisterModel {
final bool doOnIOS; final bool doOnIOS;
final bool doOnAndroid; final bool doOnAndroid;
///[appId] is not necessary.
///if [doOnIOS] is true ,fluwx will register WXApi on iOS.
///if [doOnAndroid] is true, fluwx will register WXApi on Android.
RegisterModel({this.appId, this.doOnIOS: true, this.doOnAndroid: true}); RegisterModel({this.appId, this.doOnIOS: true, this.doOnAndroid: true});
Map toMap() { Map toMap() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论