AppearanceMode enum

The appearance (colour scheme) of the viewer.

Platform availability:

  • Android: maps to PdfActivityConfiguration$Builder.themeMode (LIGHT, DARK, DEFAULT).
  • iOS: appearance is applied through the platform adapter rather than the configuration builder.
  • Web: maps to the theme load option. Use AppearanceModeWebName.webName to convert; only night maps to 'DARK' — all other values map to 'LIGHT'.
Inheritance
Available extensions

Values

defaultMode → const AppearanceMode

System or SDK default appearance (follows the device theme where possible).

sepia → const AppearanceMode

Sepia-tinted paper-like appearance.

On Web there is no native sepia theme — this value maps to 'LIGHT'.

night → const AppearanceMode

Dark / night-mode appearance with a dark background.

On Web maps to 'DARK'.

allCustomColors → const AppearanceMode

Full custom colour scheme (advanced use; requires additional SDK configuration to define the exact colours).

On Web there is no equivalent — this value maps to 'LIGHT'.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
webName String?

Available on AppearanceMode, provided by the AppearanceModeWebName extension

Returns the Web SDK theme string ('DARK' or 'LIGHT') for this mode.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<AppearanceMode>
A constant List of the values in this enum, in order of their declaration.