Browse Source

LoadingManager: Add docs for setResourceTransform().

Don McCurdy 7 years ago
parent
commit
503fdd4867
1 changed files with 19 additions and 0 deletions
  1. 19 0
      docs/api/loaders/managers/LoadingManager.html

+ 19 - 0
docs/api/loaders/managers/LoadingManager.html

@@ -121,6 +121,25 @@
 
 		<h2>Methods</h2>
 
+		<h3>[method:null setResourceTransform]( [page:Function callback] )</h3>
+		<div>
+		[page:Function callback] — transform callback. Called with [page:String url] argument, and
+		must return [page:String resolvedURL].<br /><br />
+
+		If provided, the transform callback will be passed each resource URL before a request is sent.
+		The callback may return the original URL, or a new URL to override loading behavior. This
+		behavior can be used to load assets from .ZIP files, drag-and-drop APIs, and Data URIs.
+		</div>
+
+		<h3>[method:String resolveResourceURL]( [page:String url] )</h3>
+		<div>
+		[page:String url] — the url to load<br /><br />
+
+		Given a URL, uses the resource transform callback (if any) and returns a resolved URL. If no
+		transform is set, returns the original URL.
+		</div>
+
+		<br /><br />
 		<div>
 			<em>Note: The following methods are designed to be called internally by loaders. You shouldn't call
 			them directly.</em>