Utility class to retrieve values from compiler defines.
Static methods
staticgetFloat(key:Dynamic, defaultValue:Dynamic):Dynamic
Retrieves a float value from the compiler define if it is set. If the define is not set or the value is not a valid float, it returns the specified default value.
Parameters:
key | The compiler define key to check. |
---|---|
defaultValue | The default value to return if the define is not set or invalid. |
Returns:
The float value from the compiler define or the default value.
staticgetInt(key:Dynamic, defaultValue:Dynamic):Dynamic
Retrieves an integer value from the compiler define if it is set. If the define is not set or the value is not a valid integer, it returns the specified default value.
Parameters:
key | The compiler define key to check. |
---|---|
defaultValue | The default value to return if the define is not set or invalid. |
Returns:
The integer value from the compiler define or the default value.
staticgetString(key:Dynamic, defaultValue:Dynamic):Dynamic
Retrieves a string value from the compiler define if it is set.
If the define is not set or the value is not a valid string, it returns the specified default value.
Parameters:
key | The compiler define key to check. |
---|---|
defaultValue | The default value to return if the define is not set or invalid. |
Returns:
The string value from the compiler define or the default value.