Lightcycle
LightCycle lets self-contained classes respond to Android’s lifecycle events
Install / Use
/learn @soundcloud/LightcycleREADME
LightCycle
LightCycle is an Android library that helps break logic out of Activity and Fragment classes into small, self-contained components called LightCycles.
Fields that are annotated @LightCycle and implement the LightCycle API within a LightCycleActivity or LightCycleFragment will be bound to that Activity or Fragment lifecycle.
For more information please see the website.
Examples
Build integration
Gradle:
ext.lightCycleVersion=<LATEST_VERSION>
dependencies {
compile "com.soundcloud.lightcycle:lightcycle-lib:$lightCycleVersion"
annotationProcessor "com.soundcloud.lightcycle:lightcycle-processor:$lightCycleVersion"
}
Or if you're using a version of the Android gradle plugin below 2.2.0
buildscript {
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
apply plugin: 'com.neenbedankt.android-apt'
ext.lightCycleVersion=<LATEST_VERSION>
dependencies {
compile "com.soundcloud.lightcycle:lightcycle-lib:$lightCycleVersion"
apt "com.soundcloud.lightcycle:lightcycle-processor:$lightCycleVersion"
}
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
