Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
umeng_common_flutter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
flutter-plugin
umeng_common_flutter
Commits
d3dbadcb
Commit
d3dbadcb
authored
Sep 03, 2021
by
汪林玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加备注
parent
d65a8692
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
3 deletions
+33
-3
README.md
README.md
+33
-3
No files found.
README.md
View file @
d3dbadcb
...
...
@@ -3,13 +3,43 @@
# 1、安装
在工程 pubspec.yaml 中加入 dependencies
```
dependencies:
umeng_common_sdk:
git:
url: git@github.com:flutter-plugin/umeng_common_flutter.git
ref: master
```
# 2、使用
```
import 'package:umeng_common_sdk/umeng_common_sdk.dart';
```
# 3、初始化
```
UmengCommonSdk.preInit(
appKey: '6130b199695f794bbd9cb984',
channel: 'qiaomeng',
enableLog: true,
).then((value) {}).whenComplete(() {
Future.delayed(Duration(seconds: 15), () {
UmengCommonSdk.init(
appKey: '6130b199695f794bbd9cb984',
channel: 'qiaomeng',
deviceType: 1,
pushSecret: '6130b199695f794bbd9cb984',
);
});
});
```
# 4、上报事件
```
await UmengCommonSdk.onEvent(
event: 'event_test',
properties: {
'key': '测试上传数据',
'key1': '测试上传数据',
},
);
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment