A base class that contains logic for initializing items.

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

_handles: Handles<unknown, ResourceHandle>

Do not directly reference this property. Use EventNames and EventTypes helpers from @arcgis/core/Evented.

Accessors

Methods

  • The property keys and their metadata that are used to implement serializing and deserializing the class instance.

    Returns PropertyDefs<TProperties>

  • Initializes child entities.

    Returns Promise<void>

  • Called to perform cleanup. Subclasses should override this method rather than destroy() to perform custom cleanup.

    Returns Promise<void>

  • Called to perform initialization of the support/InitializableBase!InitializableBase. Subclasses should override this method rather than initialize() to perform custom initialization.

    Returns Promise<void>

  • Called after normal initialization. Note: Child items are initialized before this is called.

    Returns Promise<void>

  • Parameters

    Returns void

  • Parameters

    Returns Promise<void>

  • A clean-up function that should get called whenever the item is disposed of.

    Returns Promise<void>

  • Returns Promise<void>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • key: K

    Returns TProperties[K]

  • Returns TProperties

  • Returns the serializable properties.

    Parameters

    • OptionalserializeMode: SerializeMode

      Optional. If specified, only properties that support the given serialization mode will be returned.

    Returns PropertyDefs<TProperties>

  • Parameters

    Returns TProperties