Skip to content

Commit 8ffd4e2

Browse files
committed
Update binds doc file to add doc for BindGif annotation
1 parent bc28c58 commit 8ffd4e2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/annotations/binds.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@ Example:
3030
val wallpaper : String
3131
```
3232

33+
### @BindGif
34+
Used to annotate integer which represent the gif raw file name to load it into ImageView
35+
36+
Parameters:
37+
38+
- viewId: the id of the ImageView
39+
40+
- loader: can be GifLoader.GLIDE, GifLoader.COIL
41+
42+
Example:
43+
44+
```kotlin
45+
@BindImage(GifLoader.COIL, "main_background")
46+
val wallpaper : Int
47+
```
48+
3349
### @BindImageRes
3450
Used to annotate int which represent the resource id to used as an resoruce for ImageView
3551

0 commit comments

Comments
 (0)