Skip to content

Commit

Permalink
version 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-squarebits authored Nov 25, 2022
1 parent 0ea97e6 commit 664d09b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ Initialise the SDK in your application class and add the API_KEY from DevNagri.
val syncTime:Int = 60 //In minutes
val strings = R.string::class.java.fields.map { it.name }
val arrays = R.array::class.java.fields.map { it.name }
val plurals = R.plurals::class.java.fields.map { it.name }
val strings = R.string::class.java.fields
val arrays = R.array::class.java.fields
val plurals = R.plurals::class.java.fields
// passing arrays and plurals in init method is optional here, pass them only if defined in strings.xml file
// passing fields and plurals in init method is optional here, pass them only if defined in strings.xml file
DevNagriTranslationSdk.init(applicationContext, "API_KEY" ,syncTime, strings, arrays, plurals, initListener = {isInitialized, error ->
})
Expand Down

0 comments on commit 664d09b

Please sign in to comment.