Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
death14stroke committed Feb 23, 2020
2 parents 4e16303 + fcc1823 commit 4c1d39d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 4c1d39d

Please sign in to comment.