title | description | ms.author |
---|---|---|
MSMapLocationProviderBuilder Class | Microsoft Docs |
Describes the MSMapLocationProviderBuilder class for iOS and provides the class' syntax, properties, and methods. |
adl |
[!INCLUDE bing-maps-sdk-for-android-iOS-retirement]
A builder object which contains properties that can be optionally set by the hosting app to create a MSMapLocationProvider.
See MSMapLocationProvider for more details on how to use the builder with the location provider's constructor.
@interface MSMapLocationProviderBuilder : NSObject
Represents desired accuracy level for location tracking. Desired accuracy must be one of CLLocationManager's accuracy constants. If the user only authorized an accuracyAuthorization of CLAccuracyAuthorization.reducedAccuracy, desiredAccuracy will always be kCLLocationAccuracyReduced regardless of what it is set as. Otherwise, the location service will do its best to achieve the requested accuracy, but it is not guaranteed.
Default value is kCLLocationAccuracyNearestTenMeters.
@property(nonatomic) CLLocationAccuracy desiredAccuracy
Represents the minimum angular change in degrees required to generate new heading events.
Default value is 5 degrees.
@property(nonatomic) CLLocationDegrees headingFilter
Sets properties to be suitable for navigation. Sets desired accuracy as kCLLocationAccuracyBestForNavigation, heading filter as kCLHeadingFilterNone, and useLastKnownLocationOnLaunch as NO.
- (void)setNavigationSettings
Call this to use the last known location as the default location on launch if it exists. Default will not use the last known location on launch.
- (void)useLastKnownLocationOnLaunch