Giter VIP home page Giter VIP logo

common-android's Introduction

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

common-android's People

Contributors

renyuan avatar youxilua avatar

Stargazers

JohnHuang avatar  avatar Bin Wei avatar xiedantibu avatar

Watchers

lishouming avatar James Cloos avatar inmyfree avatar xiedantibu avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.