Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Brabenetz committed Jul 1, 2021
1 parent 151b62c commit 00d5c75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ class YourApp : Application() {
}
```

By default the SDK checks for GMS availability first. It is also possible to set the priority in which order the service availability is checked (for example if you prefer HMS services over GMS services on devices where both are available):
```kotlin
ChoiceSdk.init(this, listOf(MobileService.HMS, MobileService.GMS))
```

## Usage
Usually instances of SDK classes can be created by using their corresponding factory, for example `AnalyticsFactory.getAnalytics(this)`. These calls can throw an `UnsupportedOperationException` if neither GMS nor HMS services are available, so make sure to check beforehand.

Expand Down

0 comments on commit 00d5c75

Please sign in to comment.