diff --git a/src/providers/image-loader.ts b/src/providers/image-loader.ts index f216b6d..59f2f78 100644 --- a/src/providers/image-loader.ts +++ b/src/providers/image-loader.ts @@ -52,6 +52,15 @@ export class ImageLoader { } } + /** + * Preload an image + * @param imageUrl {string} Image URL + * @returns {Promise} returns a promise that resolves with the cached image URL + */ + preload(imageUrl: string): Promise { + return this.getImagePath(imageUrl); + } + /** * Clears the cache */