- Add the JitPack repository to your build.gradle at the end of repositories:
repositories {
...
maven { url 'https://jitpack.io' }
}- Add the dependency
implementation 'com.github.ctrlbytes:CodeKit:LATEST_VERSION_HERE'ConnectivityUtils.isInternetOn(context);
ConnectivityUtils.isMobileDataOn(context);
ConnectivityUtils.isWiFiOn(context);
AppsInDevice.isInstalled(context, packageName)launchActivity(activityClass) { intent ->
putExtra()
}
openUrl(urlString)
toast(stringRes|string)
toast(stringRes|string, LENGTH_SHORT)
openAppInPlayStore() // will open current app
openAppInPlayStore(appPackageName) // will open the specified packagetoast(stringRes|string)
toast(stringRes|string, LENGTH_SHORT)getValue()
setValue(string)
clear()hide() // visibility gone by default
hide(VISIBLE|GONE) // or specify
show() // visibility visible