Skip to content
forked from gyf-dev/Cactus

Android Keep Alive,集成双进程服务,JobScheduler,onePix(一像素),WorkManager,无声音乐

Notifications You must be signed in to change notification settings

fadedHYC/Cactus

 
 

Repository files navigation

使用

android studio

// 基础依赖包,必须要依赖
implementation 'com.gyf.cactus:cactus:1.0.1'

Api详解(api请参考注释)

  • java用法

     Cactus.getInstance()
           .isDebug(true)
           .setPendingIntent(pendingIntent)
           .addCallback(new CactusaddCallback())
           .register(this)
  • kotlin用法

     cactus {
        setPendingIntent(pendingIntent)
        setMusicId(R.raw.main)
        isDebug(true)
        addCallback(object : CactusCallback {
               override fun doWork() {
                            
               }
        
               override fun onStop() {
                           
               }
        })
     }

联系我

  • QQ群 314360549(问题交流)

About

Android Keep Alive,集成双进程服务,JobScheduler,onePix(一像素),WorkManager,无声音乐

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%