A simple collection holder for categories.

Export

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Private

    Creates an instance of MPCategoryCollection.

    Parameters

    • category: MPCategory[]

      A collection of categories used in MapsIndoors.

    Returns MPCategoryCollection

Properties

map: Map<String, MPCategory>

The map the objects are kept in.

Accessors

  • get size(): number
  • The number of objects in the collection.

    Returns number

Methods

  • Gets all objects contained in the collection.

    Returns MPCategory[]

  • Get a object by its identifier.

    Parameters

    • id: string

    Returns MPCategory

  • Get a category's fields directly.

    Parameters

    • key: string

    Returns Map<string, MPDataField>

  • Get a category's value directly.

    Parameters

    • key: string

    Returns string

  • Creator for MPCategoryCollection, used to decode JSON from the MapsIndoors SDK.

    Parameters

    • Optional object: any

    Returns MPCategoryCollection

    Static

Generated using TypeDoc