ExIcon.Provider behaviour (ExIcon v0.3.0)

Copy Markdown View Source

Behaviour for icon providers.

Summary

Callbacks

Returns the download URL for the release with the given version.

Returns the folder that contains the SVG files in the unpacked release.

Callbacks

release_url(version)

@callback release_url(version) :: url when version: String.t(), url: String.t()

Returns the download URL for the release with the given version.

The URL must point to a zip file.

svg_folder(version)

@callback svg_folder(version) :: String.t() when version: String.t()

Returns the folder that contains the SVG files in the unpacked release.