Skip to content

Commit 8512c58

Browse files
p16774samtstern
authored andcommitted
Update README.md (#963)
1 parent 0d65ada commit 8512c58

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

storage/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To load an image from a `StorageReference`, first register in your `AppGlideModu
1919
public class MyAppGlideModule extends AppGlideModule {
2020

2121
@Override
22-
public void registerComponents(Context context, Registry registry) {
22+
public void registerComponents(Context context, Glide glide, Registry registry) {
2323
// Register FirebaseImageLoader to handle StorageReference
2424
registry.append(StorageReference.class, InputStream.class,
2525
new FirebaseImageLoader.Factory());
@@ -38,11 +38,13 @@ ImageView imageView = ...;
3838

3939
// Download directly from StorageReference using Glide
4040
// (See MyAppGlideModule for Loader registration)
41-
GlidApp.with(this /* context */)
41+
GlideApp.with(this /* context */)
4242
.load(storageReference)
4343
.into(imageView);
4444
```
4545

46+
If GlideApp is not an importable class, build your application first before trying to use. For more information, see Glide v4 ['Generated API'][generated-api] documentation.
47+
4648
Images displayed using `FirebaseImageLoader` are cached by their path in Cloud Storage, so
4749
repeated loads will be fast and conserve bandwidth. For more information on caching in Glide,
4850
see [this guide][glide-caching].
@@ -51,3 +53,4 @@ see [this guide][glide-caching].
5153
[glide]: https://github.com/bumptech/glide
5254
[storage-reference]: https://firebase.google.com/docs/reference/android/com/google/firebase/storage/StorageReference
5355
[glide-caching]: https://github.com/bumptech/glide/wiki/Caching-and-Cache-Invalidation
56+
[generated-api]: https://bumptech.github.io/glide/doc/generatedapi.html

0 commit comments

Comments
 (0)