GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexpreston/common-android: 一些包的封装

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
youxilua-common-umeng
youxilua-common-umeng
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

common-android

#友盟 for android 操作的封装包#

  • 介绍
  • 详解

##介绍## 这个库,把友盟的初始化设置,自定义事件,还有使用时长进行了一层简单的封装,例如,初始化设置

UmengOption option = new UmengOption(this, true); UmengAnalytics.initUmengOption(option);

如果需要个别设置只需要在init之前,对option,直接

option.isDebug = false

##详解## 封装的类: 友盟的设置对象:UmengOption

友盟的自定义事件:UmengEvent

`UmengEvent ue = new UmengEventUmengEvent(Context ctx,eventId,label);

UmengAnalytics.customEvent(ue);

如果是带map的,在调用customEvent之前,使用即可

ue.setEventMap(eventMap) `

友盟的自定义事件中的时长统计:UmengTimeLine

`UmengTimeLine useTime = new UmengTimeLine(this, "id","label");

开始:UmengAnalytics.reportUseTime(useTime.isBegin())

结束: :UmengAnalytics.reportUseTime(useTime.isEnd);`

这样的好处就是我们只需要维护好对象就行了

地址: https://github.com/youxilua/common-android

About

一些包的封装

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.