Section

Defines the organizational sections for grouping DevView modules.

Sections provide a way to categorize and group related modules in the DevView home screen. Modules within the same section are visually grouped together, making it easier for developers to find and access related functionality.

Section Organization

  • SETTINGS: Configuration and app information modules

  • FEATURES: Feature flag and development tools

  • NETWORK: Network monitoring, logging, and mocking tools

  • LOGGING: Debugging, analytics, and logging tools

  • CUSTOM: Application-specific custom modules

Usage Example

object MyModule : Module {
override val section: Section = Section.FEATURES

// Other module implementation...
}

Default Icons

Each section has a default icon accessible via the icon extension property:

  • SETTINGS → Settings icon (gear)

  • FEATURES → DeveloperMode icon

  • NETWORK → NetworkCheck icon

  • LOGGING → FormatListNumbered icon (list)

  • CUSTOM → Extension icon (puzzle piece)

See also

Entries

Link copied to clipboard

Section for settings and configuration modules.

Link copied to clipboard

Section for feature flag and development tool modules.

Link copied to clipboard

Section for network-related modules.

Link copied to clipboard

Section for logging, analytics, and debugging modules.

Link copied to clipboard

Section for application-specific custom modules.

Properties

Link copied to clipboard

Extension property providing the default container (background) color for each section.

Link copied to clipboard

Extension property providing the default content (foreground) color for each section.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Extension property providing the default icon for each section.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Section

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.