PropertyControllerInterface
public protocol PropertyControllerInterface
                Manager to provide information and services related to Properties
- 
                  
                  
Get property information for the propertyId provided
Declaration
Swift
func getInfo(propertyId: Int) -> PropertyInfo?Parameters
propertyIdAn identifier for the property
 - 
                  
                  
Get a hashmap of property infos available
Declaration
Swift
func getInfos() -> [Int : PropertyInfo]Return Value
A hash of propertyId: PropertyInfo
 - 
                  
                  
Get a list of property infos available
Declaration
Swift
func getAll() -> [PropertyInfo]Return Value
A hash of propertyId: PropertyInfo
 - 
                  
                  
Get a list of property ids available
Declaration
Swift
func getAllIds() -> [Int]Return Value
An array of propertyIds matching propertyinfos
 - 
                  
                  
Download and cache property data
Declaration
Swift
func downloadAndCache(propertyId: Int, callback: (MNPropertyData?) -> Void)Parameters
propertyIdAn identifier for the property
callbackCallback method with the downloaded and cached data from when function completes
 - 
                  
                  
Get propertyIds of cached properties
Declaration
Swift
func getCachedIds() -> Set<Int>Return Value
Unique set of propertyIds for cached items
 - 
                  
                  
Get cached property matching propertyId provided
Declaration
Swift
func getCached(propertyId: Int) -> MNPropertyData?Parameters
propertyIdAn identifier for the property
Return Value
Property data from cache for that propertyId
 - 
                  
                  
Get the number of cached properties
Declaration
Swift
func getNumCached() -> IntReturn Value
Number of properties currently being cached
 - 
                  
                  
Remove property data from the database.
Declaration
Swift
func delete(propertyId: Int, listener: PropertyActionCompleteListener)Parameters
propertyIdThe property Id for the property to remove.
listenerAn observer to be notified when deletion is complete
 - 
                  
                  
Remove property data from the cache.
Declaration
Swift
func unload(propertyId: Int, listener: PropertyActionCompleteListener)Parameters
propertyIdThe property Id for the property to remove.
listenerAn observer to be notified when deletion is complete
 - 
                  
                  
Start download of property map data.
Declaration
Swift
func startDownload(propertyId: Int, propertyDownloadListener listener: PropertyDownloadListener)Parameters
propertyIdThe property Id for the property to download.
listenerAn observer to be notified of download progress
 - 
                  
                  
Get the current status of property download
Declaration
Swift
func getDownloadStatus(propertyId: Int) -> DownloadStatusParameters
propertyIdThe property Id for the property to check the status of.
Return Value
The download status
 - 
                  
                  
Set property as selected
Declaration
Swift
func setSelected(propertyId: Int)Parameters
propertyIdThe property Id for the property to be marked as selected
Return Value
The download status
 - 
                  
                  
Set property as selected
Declaration
Swift
func getSelected() -> IntParameters
propertyIdThe property Id for the property to be marked as selected
Return Value
The download status
 - 
                  
                  
Get the list of search entities for a property
Declaration
Swift
func getSearchEntities(propertyId: Int) -> [ISearchable]Parameters
propertyIdThe property Id for the property
Return Value
The list of search entities in property
 - 
                  
                  
Get entity for the property. It tries to fetch the entity at building level or at property level.
Declaration
Swift
func getEntity(propertyId: Int, buildingId: Int, entityId: Int) -> MNSearchEntity?Parameters
propertyIdThe property Id for the property
buildingIdThe building Id for the building
entityIdThe entity Id for the entity
Return Value
The entity in property
 - 
                  
                  
Call this function to perform search of an entity inside a property
Declaration
Swift
func findEntityByName(name: String, propertyId: Int) -> [ISearchable]Parameters
nameThe name of the entity to search for
propertyIdAn identifier for the property
Return Value
A list of searchables matching the name
 - 
                  
                  
Call this function to fetch the list of categories for a property
Declaration
Swift
func getCategories(propertyId: Int, callback: @escaping ((PoiCategoriesResult?) -> Void))Parameters
propertyIdAn identifier for the property
Return Value
A list of categories under the property
 - 
                  
                  
Call this function to search for points of interest based on the filter provided
Declaration
Swift
func searchPOIs(filter: PoiFilter, propertyId: Int, completion: @escaping (([ISearchable]) -> Void))Parameters
propertyIdAn identifier for the property
filterOne or more filters to apply while searching for points of interest
completionA closure to be called upon completion of the search with matching ISearchable objects
 - 
                  
                  
Call this function to add listener for the additional resources to be downloaded for property
Declaration
Swift
func addListener(listener: PropertyCompletionListener)Parameters
listenerA listener object
 - 
                  
                  
Call this function to remove listener for the additional resources to be downloaded for property
Declaration
Swift
func removeListener(listener: PropertyCompletionListener)Parameters
listenerA listener object
 
      PropertyControllerInterface Protocol Reference