Scenic.Assets.Static.resolve_id

You're seeing just the function resolve_id, go back to Scenic.Assets.Static module for more information.

Specs

resolve_id(id :: String.t() | atom() | binary()) ::
  {:ok, String.t()} | {:error, :not_mapped} | {:error, :not_found}

Resolve an id, an alias, or a hash into the asset's id.

Examples:

iex(1)> Scenic.Assets.Static.resolve_id( "fonts/roboto.ttf" )
{:ok, "fonts/roboto.ttf"}

iex(2)> Scenic.Assets.Static.resolve_id( :roboto )
{:ok, "fonts/roboto.ttf"}

iex(3)> Scenic.Assets.Static.resolve_id( "85FMX5UxpxdyY8Vf7yilQ_3KKnUQxifa7Ejbll7DuyE" )
{:ok, "fonts/roboto.ttf"}