MNSelectionManager

open class MNSelectionManager
  • Declaration

    Swift

    public var zone: MNPbZone? { get }
  • Declaration

    Swift

    public var entity: MNMapEntity? { get }
  • Declaration

    Swift

    public var searchEntity: MNSearchEntity? { get }
  • For v3.0, when select a property, we automatically select a building inside the property as well as the floor in the building.

    Declaration

    Swift

    public func selectProperty(propertyId: Int, buildingId: Int? = nil)

    Parameters

    propertyId

    the property you want to select.

  • Deselect the property and reset zone & entity. The method is used when removing entity from property list.

    Declaration

    Swift

    public func deselectProperty(propertyId: Int)

    Parameters

    propertyId

    the property you want to deselect.

  • Deselect the entity

    Declaration

    Swift

    public func deselectEntity()
  • Select the entity, return false if entity cannot be selected

    Declaration

    Swift

    public func selectEntity(entity: ISearchable) -> Bool
  • Select the entity, return false if entity cannot be selected

    Declaration

    Swift

    public func selectEntity(entity: MNMapEntity?, post: Bool = false) -> Bool