Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 2.01 KB

msmaplocationproviderbuilder-class.md

File metadata and controls

56 lines (36 loc) · 2.01 KB
title description ms.author
MSMapLocationProviderBuilder Class | Microsoft Docs
Describes the MSMapLocationProviderBuilder class for iOS and provides the class' syntax, properties, and methods.
adl

MSMapLocationProviderBuilder Class (iOS only)

[!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

Properties

DesiredAccuracy

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

HeadingFilter

Represents the minimum angular change in degrees required to generate new heading events.

Default value is 5 degrees.

@property(nonatomic) CLLocationDegrees headingFilter

Methods

SetNavigationSettings

Sets properties to be suitable for navigation. Sets desired accuracy as kCLLocationAccuracyBestForNavigation, heading filter as kCLHeadingFilterNone, and useLastKnownLocationOnLaunch as NO.

- (void)setNavigationSettings

UseLastKnownLocationOnLaunch

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