提交 171993c9 authored 作者: sand's avatar sand

update open method doc

上级 a320f05c
...@@ -80,6 +80,22 @@ class MethodChannelFluwx extends FluwxPlatform { ...@@ -80,6 +80,22 @@ class MethodChannelFluwx extends FluwxPlatform {
return await methodChannel.invokeMethod('isWeChatInstalled'); return await methodChannel.invokeMethod('isWeChatInstalled');
} }
/// The OpenType has various types, which are:
/// WeChatApp
/// Browser
/// RankList
/// BusinessView
/// Invoice
/// CustomerServiceChat
/// MiniProgram
/// SubscribeMessage
/// How to use:
///  Fluwx().open(
///  target: CustomerServiceChat(
///    url: 'URL',
///    corpId: 'ID',
///    ),
/// );
@override @override
Future<bool> open(OpenType target) async { Future<bool> open(OpenType target) async {
switch (target) { switch (target) {
...@@ -205,7 +221,7 @@ class MethodChannelFluwx extends FluwxPlatform { ...@@ -205,7 +221,7 @@ class MethodChannelFluwx extends FluwxPlatform {
///Only works on iOS in debug mode. ///Only works on iOS in debug mode.
@override @override
Future<void> selfCheck() async{ Future<void> selfCheck() async {
return await methodChannel.invokeMethod('selfCheck'); return await methodChannel.invokeMethod('selfCheck');
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论