提交 1eb19a55 authored 作者: JarvanMo's avatar JarvanMo

update docs

上级 c9c6cd0a
...@@ -26,8 +26,8 @@ For`Android`,create `WXEntryActivity`or`WXPayEntryActivity`,and override the fol ...@@ -26,8 +26,8 @@ For`Android`,create `WXEntryActivity`or`WXPayEntryActivity`,and override the fol
} }
``` ```
You can also directly inherit `FluwxWXEntryActivity`,and then you can do nothing. You can also directly inherit `FluwxWXEntryActivity`,and then you can do nothing.
For the rule of creating `WXEntryActivity`and`WXPayEntryActivity`,please read[example wxapi](https://github.com/OpenFlutter/fluwx/tree/master/example/android/app/src/main/kotlin/net/sourceforge/simcpux/wxapi ) For the rule of creating `WXEntryActivity`and`WXPayEntryActivity`,please read [example wxapi](https://github.com/OpenFlutter/fluwx/tree/master/example/android/app/src/main/kotlin/net/sourceforge/simcpux/wxapi )
,never register your Activity in `AndroidManifest.mxl`: ,never forget to register your Activity in `AndroidManifest.mxl`:
```xml ```xml
<activity <activity
android:name="your.package.name.registered.on.wechat.wxapi.WXEntryActivity" android:name="your.package.name.registered.on.wechat.wxapi.WXEntryActivity"
...@@ -43,7 +43,7 @@ For the rule of creating `WXEntryActivity`and`WXPayEntryActivity`,please read[ex ...@@ -43,7 +43,7 @@ For the rule of creating `WXEntryActivity`and`WXPayEntryActivity`,please read[ex
``` ```
### iOS ### iOS
override the following function in`AppDelegate.m`: override the following function in`AppDelegate`:
```objective-c ```objective-c
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler defaultManager]]; return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler defaultManager]];
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
``` ```
### iOS ### iOS
在你的`AppDelegate.m`中重写下面方法: 在你的`AppDelegate`中重写下面方法:
```objective-c ```objective-c
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler defaultManager]]; return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler defaultManager]];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论