From f83a67fae2eba3378774c2a90c745b80234eaa8b Mon Sep 17 00:00:00 2001 From: jrouault Date: Mon, 13 Jul 2015 12:45:48 +0900 Subject: [PATCH] Rename URI to localURI for clarity. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 06b41f2..af89c60 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ PhoneGap plugin for managing application assets with javascript asset maps. Incl ### downloadFile() -**wizAssets.downloadFile(String URL, String URI, Function success, Function fail);** +**wizAssets.downloadFile(String remoteURL, String localURI, Function success, Function fail);** - downloads a file to native App directory @ ./ + gameDir+ / +filePathToBeStoredWithFilename
- A success returns a file URI string like; file://documents/settings/img/cards/card001.jpg
@@ -36,7 +36,7 @@ wizAssets.downloadFile("http://google.com/logo.jpg", "img/ui/logo.jpg", successC ### deleteFile() -**wizAssets.deleteFile(string URI, Function success, Function fail);** +**wizAssets.deleteFile(string localURI, Function success, Function fail);** - deletes the file specified by the URI
- if the URI does not exist fail will be called with error NotFoundError
@@ -48,7 +48,7 @@ wizAssets.deleteFile("file://documents/settings/img/cards/card001.jpg", successC ### deleteFiles() -**wizAssets.deleteFiles(Array URIs, Function success, Function fail );** +**wizAssets.deleteFiles(Array localURIs, Function success, Function fail );** - delete all URIs in Array like; [ "img/cards/card001.jpg", "img/cards/card002.jpg " .. ]
- if you do not specify a filename only dir, then all contents of dir will be deleted; img/cards
@@ -56,7 +56,7 @@ wizAssets.deleteFile("file://documents/settings/img/cards/card001.jpg", successC ### getFileURI() -**wizAssets.getFileURI(String URI, Function success, Function fail);** +**wizAssets.getFileURI(String localURI, Function success, Function fail);** - A success returns a file URI string like file://documents/settings/img/cards/card001.jpg
- example;