Skip to content

Commit

Permalink
Adjust README
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Jan 1, 2021
1 parent c48ca01 commit c9c2663
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Both methods can also be called with a second parameter of type `String` to defi
You can call the `importColorList` method to bring up a dialog for picking a single ACO or ASE file.
```kotlin
AdobeColorTool(this).importColorList(this, object: AdobeColorTool.AdobeImportListener {
override fun onComplete(colors: List<AdobeColor>) {
override fun onComplete(colors: Map<String, List<AdobeColor>>) {
/* Your code */
}

Expand All @@ -71,7 +71,9 @@ AdobeColorTool(this).importColorList(this, object: AdobeColorTool.AdobeImportLis
}
})
```
The selected file will automatically be analyzed, whether it is a ACO or ASE file and you get back a object of type `List<AdobeColor>` in the `onComplete` callback method.
The selected file will automatically be analyzed, whether it is a ACO or ASE file and you get back a object of type `Map<String, List<AdobeColor>>` in the `onComplete` callback method.
The map will contain key value pairs, which stand for all imported color groups. The key is the group name and the value is a list of type `AdobeColor` with the actual color values.
An import of the ACO format will result in a single color group with the name `ACO Import`, containing all color values.

## More in-depth technical information
The following remarks are based on the following data:
Expand Down

0 comments on commit c9c2663

Please sign in to comment.