BEView
@objc
public class BEView : UIView, BENotificationObservable
You use this class as-is to display map information from your application. When you initialize a map view, you specify the BESite for that map to display by calling the setSite() function. The SDK makes the initial BEFloor and floor region visible based on the user’s current location or default map settings. In addition to this, BEView supports many standard user interactions for changing the position and zoom level of the map. In particular, map views support swipe and pinch gestures for scrolling around the map and zooming in and out. BEView also provides a floor switch button that enables the functionality to switch between floors.
Version
1.0Copyright
Copyright © 2019 GlobeCo Technologies Pvt Ltd. All rights reserved.-
Undocumented
Declaration
Swift
@objc public weak var delegate: BEViewDelegate?
-
func voiceAssistanceEnabled:
- Setting the value of this property to true will enable voice assistance and setting it to false will disable voice assistance. The default value is true.
Declaration
Swift
@objc public var voiceAssistanceEnabled: Bool { get set }
-
func locationButtonIsHidden:
- Setting the value of this property to true hides the current location button and setting it to false shows it. The default value is false.
Declaration
Swift
@objc public var locationButtonIsHidden: Bool { get set }
-
Undocumented
Declaration
Swift
@objc public override init(frame: CGRect)
-
Undocumented
Declaration
Swift
@objc public required init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
public convenience init()
-
func setSite:BESite
- Set site will load curresponding site data in your BEView
Declaration
Swift
@objc public func setSite(_ site: BESite)
Parameters
site
the BESite referance, required to show in BEView
-
func getPoints
- Used to get all BEPoints on map.
Declaration
Swift
@objc public func getPoints() -> BEPoints
Return Value
list of BEPoint
-
func findMapPoint:String
- Used to search for BEPoints on map.
- Make sure ypu have implimented becoView(_ mapView: BEView, didFindResult results: BEPoints, forText searchText: String) delegate to get the results.
Declaration
Swift
@objc public func findMapPoints(searchText: String)
Parameters
text
Search string
-
func selectPoint:BEPoint
- To select a BEPoint in BEView
To do
Clear selected pointDeclaration
Swift
@objc public func select(point: BEPoint?)
Parameters
point
BEPoint for selection
-
getRouteFloors: The function will returen the list of BEFloors, in your route with refered Start point and End point.
- If routeRequest is not a
validRequest
, Will trigger errorBERoutingErrorInvalidRouteRequest
- if there isn’t any valid path between startPoint and endPoint, Will trigger error
BERoutingErrorNoValidPath
Declaration
Parameters
startPoint
Start point for your route
endPoint
BERoute object
Return Value
list of BEFloor that involved in the route
- If routeRequest is not a
-
showRouteOnFloor:
- Function will draw a route on BEView
- If routeRequest is not a
validRequest
, Will trigger errorBERoutingErrorInvalidRouteRequest
- if there isn’t any valid path between startPoint and endPoint, Will trigger error
BERoutingErrorNoValidPath
Declaration
Swift
@objc public func showRouteOnFloor(on floor: BEFloor)
Parameters
floor
BEfloor referance
-
func reset
- The function will clear routes and selected point in BEView
Declaration
Swift
@objc public func reset()
-
BEView navigate function will start the navigation on the route refered in getRouteFloors or ShowRoute function
- Start naviagtion on a route that is predefined based on BEView getRoute function
- If there is no route set, the function will trigger an error with status BERoutingError
Declaration
Swift
@objc public func navigate()