diff --git a/README.md b/README.md index d719ecd..8c98e81 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,32 @@ # kotlin-eezetensions Extension functions which I found can be useful and save time and code + +## Use +Add to your build.gradle (Module) file in dependencies: + +```implementation 'com.andruid.magic:eezetensions:1.0.0'``` + +### android.content.Context + +- color(@ColorRes color: Int): Int +- drawable(@DrawableRes res: Int): Drawable? +- startFgOrBgService(intent: Intent) +- hasInternet(): Boolean (requires Manifest.permission.ACCESS_NETWORK_STATE) +- buildSettingsIntent(): Intent + +### androidx.fragment.app.Fragment + +- color(@ColorRes color: Int): Int +- drawable(@DrawableRes res: Int): Drawable? +- startFgOrBgService(intent: Intent) +- hasInternet(): Boolean (requires Manifest.permission.ACCESS_NETWORK_STATE) + +### android.location.Location + +- getMapsUrl(): String + + +### android.view.View + +- hide() +- show()