From 4169236316f00a7c2297365675710e3b08a81476 Mon Sep 17 00:00:00 2001 From: Death14Stroke <38498710+Death14Stroke@users.noreply.github.com> Date: Sun, 23 Feb 2020 19:37:53 +0530 Subject: [PATCH 1/2] Update README.md --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index d719ecd..b97551b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,27 @@ # kotlin-eezetensions Extension functions which I found can be useful and save time and code + +## 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() From fcc1823962269d0517bd3a14c27e630c721e8319 Mon Sep 17 00:00:00 2001 From: Death14Stroke <38498710+Death14Stroke@users.noreply.github.com> Date: Sun, 23 Feb 2020 20:12:03 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b97551b..8c98e81 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ # kotlin-eezetensions Extension functions which I found can be useful and save time and code -## android.content.Context +## 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? @@ -9,19 +14,19 @@ Extension functions which I found can be useful and save time and code - hasInternet(): Boolean (requires Manifest.permission.ACCESS_NETWORK_STATE) - buildSettingsIntent(): Intent -## androidx.fragment.app.Fragment +### 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 +### android.location.Location - getMapsUrl(): String -## android.view.View +### android.view.View - hide() - show()