new CordovaGenIcon(options)
Cordova Generate Icon.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
options |
- Source:
Extends
Methods
-
convert(src, dest, width, height, options, clbk)
-
Convert an image file. It converts the source image file to the dest image file. The dest file image size is (width, height).
Parameters:
Name Type Description srcString source image file path. destString destination image file path. widthNumber destination image width. heightNumber destination image height. optionsObject opitons. clbkfunction callback function. - Inherited From:
- Source:
-
generate(clbk)
-
Generate the icon files.
Parameters:
Name Type Description clbkfunction callback function. - Inherited From:
- Source:
-
generateAmazonFireOSIcon(name, src, platforms, clbk)
Generate Amazon Fire OS Icon.
-
Parameters:
Name Type Description nameString projectn name. srcString source image path. platformsString platforms directory path. clbkfunction callback function. - Source:
-
generateAndroidIcon(name, src, platforms, clbk)
Generate Android Icon.
-
Parameters:
Name Type Description nameString projectn name. srcString source image path. platformsString platforms directory path. clbkfunction callback function. - Source:
-
generateFirefoxOSIcon(name, src, platforms, clbk)
Generate Firefox OS Icon.
-
generateFirefoxOSIcon generates the Firefox OS icon image files. Thats images are trimed as circle automatically.
Parameters:
Name Type Description nameString projectn name. srcString source image path. platformsString platforms directory path. clbkfunction callback function. - Source:
-
generateIOSIcon(name, src, platforms, clbk)
Generate iOS Icon.
-
generateIOSIcon generates the iOS icon image files. Thats images have round corner automatically.
Parameters:
Name Type Description nameString project name. srcString source image path. platformsString platforms directory path. clbkfunction callback function. - Source:
-
mkdir(dir, clbk)
-
Make the directory recursively.
Parameters:
Name Type Description dirString directory path. clbkfunction callback function. - Inherited From:
- Source:
-
prepare(clbk)
-
Prepare generating icon files. It reads www/config.xml and walk platforms/ direcotry. After that, it sets class members as generating property.
Parameters:
Name Type Description clbkfunction callback function. - Inherited From:
- Source:
-
resize(src, dests, options, clbk)
-
Resize to the image files. It resize the source image file to the destination image files.
Parameters:
Name Type Description srcString source image file path. destsString destination image file set. optionsObject opitons. clbkfunction callback function. - Inherited From:
- Source: