CustomFunction

Description

Calls a custom function.
Learn more: Custom functions

Examples

			import {Cloudinary} from "@cloudinary/url-gen";
			import {remote, wasm} from "@cloudinary/url-gen/actions/customFunction";
			
			const yourCldInstance = new Cloudinary({cloud:{cloudName:'demo'}});
			const image = yourCldInstance.image('woman');
			image.customFunction(
			 remote('http://example.com')
			);
			
			image.customFunction(
			 wasm('myPublicID'); // publicID from Cloudinary
			);

Classes


new CustomFunctionAction( fn )

Methods


<static> remote( path ) → {Actions.CustomFunctionAction}

action

Description
  • Calls a custom function.
    For more information about remote custom functions see the documentation
Parameters
Name Type Description
path string

Specifies the URL of the remote custom function.

Returns

<static> wasm( publicID ) → {Actions.CustomFunctionAction}

action

Description
  • Calls a custom function.
    For more information about wasm custom functions see the documentation
Parameters
Name Type Description
publicID string

Specifies the publicID of the custom function stored in Cloudinary

Returns