Utilities
interface Utilities
Utilities for various common functions
Functions
Link copied to clipboard
abstract fun filterAndSortSearchables(input: String, @NonNull fullList: List<out ISearchable>): List<out ISearchable>
Filter and Sort searchable list based on an input string.
Link copied to clipboard
abstract fun filterSearchableByMatchType(input: String, @NonNull fullList: List<out ISearchable>, includeExactMatch: Boolean): List<out ISearchable>
Filters a list based on an input string.
Link copied to clipboard
abstract fun filterSearchableByMatchTypeOnMetadata(input: String, @NonNull fullList: List<out ISearchable>): List<out ISearchable>
Filter list based on an input string.
Link copied to clipboard
Finds a set of buildingIds that are near a specific point within a property
Link copied to clipboard
Returns a Zone object with property and building populated (if possible).
Link copied to clipboard
Get distance between two LatLng points.
Get distance between two Mercator points.
Link copied to clipboard
Get distance between a Mercator to a polygon
Link copied to clipboard
Link copied to clipboard
abstract fun getFuzzyMatchesForSearchable(input: String, @NonNull fullList: List<out ISearchable>, resultSize: Int, threshold: Double, allowSecondPass: Boolean): List<String>
get fuzzy matches for the input.
Link copied to clipboard
Link copied to clipboard
Get the current internal timestamp in ms.
Link copied to clipboard
Link copied to clipboard
Determines if a point is located within the polygon
Link copied to clipboard
Checks if the given point is within the boundaries of the floor id.