Skip to content

First Commit

Latest

Choose a tag to compare

@popkter popkter released this 03 Jan 10:14
· 2 commits to main since this release

Global Application Context Provider

Application Context全局提供器

Usage

使用方式

//init
class MyApplication:ApplicationExt()

//getter
ApplicationModule.application.context

Extension Function to Prevent Rapid Clicks on View

防止View快速点击的拓展方法

Usage

使用方式

//single tap
view.setOnSingleClickListener(delayMillis = 500L){
  //todo
}

//long tap
view.setOnLongSingleClickListener(delayMillis = 500L){
  //todo
}

Custom Logging Utility

自定义的Log工具

fork from this project LogCat

MMKV Wrapper Based on Delegation Pattern

基于委托模式的MMKV封装

reference from this article Kotlin 委托属性(Delegated properties)实战之 MMKV 封装

Usage

使用方式

//init 
MMKVUtils.INSTANCE.init(context)

//create
var item by MMKVItem("key", 0)

//setter
item = 1

//getter
item

waiting ...