Enums
The following enums are available globally.
-
Log levels. Needed for a better understanding of logs, and clipping
- none: disable all logs
- error: After an error, a application can not be executable
Warning
Warning should pe paid attention and analyzed- info: Information is needed to understand what is happening
See moreDeclaration
Swift
public enum DILogLevel: Equatable
-
A object life time
- single: The object is only one in the application. Initialization by call
DIContainer.initializeSingletonObjects()
- lazySingle: The object is only one in the application. Initialization when first accessed
- weakSingle: The object is only one in the application. Initialization when first accessed, and the library doesn’t hold it
- objectGraph: The object is created every time, but during the creation will be created once
- prototype: The object is created every time
Declaration
Swift
public enum DILifeTime: Equatable
- single: The object is only one in the application. Initialization by call