Back to Atomvm

Module application

main-apidocs-erlang-estdlib-application.md

latest1.6 KB
Original Source

Module application

Data Types

start_type()

start_type() = normal | {takeover, Node::node()} | {failover, Node::node()}

Function Index

| get_env/2 | Retrieve the value of the configuration parameter Parameter for application Application or undefined if not found. | | get_env/3 | Retrieve the value of the configuration parameter Parameter for application Application or Default if not found. |

Function Details

get_env/2

get_env(Application::atom(), Parameter::atom()) -> any()

Application: application to get the parameter value of
Parameter: parameter to get the value of

returns: undefined

Retrieve the value of the configuration parameter Parameter for application Application or undefined if not found.

get_env/3

get_env(Application::atom(), Parameter::atom(), Default::any()) -> any()

Application: application to get the parameter value of
Parameter: parameter to get the value of
Default: default value if parameter is not found

returns: default value

Retrieve the value of the configuration parameter Parameter for application Application or Default if not found.