Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
faramarzaf committed Sep 3, 2020
2 parents 8b816ff + 9e0fd29 commit 2a584eb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@
[![](https://jitpack.io/v/faramarzaf/Android-SDK.svg)](https://jitpack.io/#faramarzaf/Android-SDK)




Add it in your root build.gradle at the end of repositories:

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}


Step 2. Add the dependency

dependencies {
implementation 'com.github.faramarzaf:Android-SDK:1.0.17'
}





* Be aware that always put this scripts to your `app/build.gradle` file


Expand Down
17 changes: 17 additions & 0 deletions WikiBatteryHelper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# BatteryHelper

```kotlin
val batteryHelper = BatteryHelper(this)
val percent = batteryHelper.getBatteryLevel()

batteryHelper.checkSaveMode(object : BatterySaveModeCallback {
override fun saveModeOn() {
// do your work
}

override fun saveModeOff() {
// do your work
}
})

```

0 comments on commit 2a584eb

Please sign in to comment.