SITOutdoorLocationOptions
Objective-C
@interface SITOutdoorLocationOptions : NSObject <NSCopying>
Swift
class SITOutdoorLocationOptions : NSObject, NSCopying
Outdoor location options used only in indoor-outdoor mode
-
Building detector strategy to find the building to start the indoor positioning
Declaration
Objective-C
@property (nonatomic) kSITBuildingDetector buildingDetector;
Swift
var buildingDetector: kSITBuildingDetector { get set }
-
Controls whether outdoor positions should be used per the location engine. Default value: YES @Discussion: this flag is incompatible with the @link kSITBuildingDetector#kSITGpsProximity building detector option. If those parameters are requested the location engine will raise an error and stop. When this option is disabled (false value) outdoor locations won’t be sent though location listener nor they will be uploaded to the realtime/historic dashboard.
Declaration
Objective-C
@property (nonatomic) BOOL enableOutdoorPositions;
Swift
var enableOutdoorPositions: Bool { get set }
-
Minimum accuracy required, in meters, for an outdoor position to be returned through the LocationManager delegate. Default value is zero, so all locations will be returned regardless of its accuracy. This parameter only accepts positive values. If a negative value is used, it will be ignored.
Declaration
Objective-C
@property (nonatomic) NSInteger minimumOutdoorLocationAccuracy;
Swift
var minimumOutdoorLocationAccuracy: Int { get set }
-
Controls if the building selection stage should take into account building detection geofences. These building detection geofences are configured from the dashboard and must have a custom field with the key “trainer_metadata” and value “{ "passable”:“True”, “use_gps”:“True”}“. This mode is useful only for a
buildingDetector
of type kSITBLE. When activating this mode you should setSITLocationRequest.useGps
to YES in theSITLocationRequest
in order obtain proper locations inside these building detection geofences.Declaration
Objective-C
@property (nonatomic) BOOL useGeofencesInBuildingSelector;
Swift
var useGeofencesInBuildingSelector: Bool { get set }
-
This property determines how fast the system computes a new outdoor location. It is defined in milliseconds.
Possible values:
- 0 means the system will compute outdoor locations as fast as possible.
- >0 means the system will disable the sensors from update to update. (typical values are 5000, 10000, 30000 milliseconds).
Default value: 0 millisecons
Computing an outdoor location is a process that can take some seconds (typically between 5000 and 10000 milliseconds). You should expect a new outdoor location being computed in computeInterval + 5 to 10 seconds.
Declaration
Objective-C
@property (nonatomic) NSInteger computeInterval;
Swift
var computeInterval: Int { get set }
-
This property determines how fast the system returns outdoor locations. It is defined in milliseconds
Possible values:
- 0 means the system will output an outdoor location as soon as it is computed.
- >0 means the system will output an outdoor location with the time interval defined in this property.
Default value is 0
See the property
computeInterval
to know how you can define the interval in which new outdoor positions are computedDeclaration
Objective-C
@property (nonatomic) NSInteger updateInterval;
Swift
var updateInterval: Int { get set }
-
This property determines the accuracy you require for outdoor positions when the app is in background. This property will be applied only if your app has any Background Location Update Mode enabled.
Default value is kSITBackgroundAccuracyHigh
Declaration
Objective-C
@property (nonatomic) kSITBackgroundAccuracy backgroundAccuracy;
Swift
var backgroundAccuracy: kSITBackgroundAccuracy { get set }
-
Compares the receiving outdoorLocationOptions to another outdoorLocationOptions
Declaration
Objective-C
- (BOOL)isEqualTo:(SITOutdoorLocationOptions *_Nonnull)options;
Swift
func isEqual(to options: SITOutdoorLocationOptions) -> Bool
Parameters
options
SITOutdoorLocationOptions The instance to compare with the receiver
Return Value
YES if options is equivalent to the receiving outdoorLocationOptions, otherwise NO.
-
Mix values between two objects.
Note
you should not use this method directly.Declaration
Objective-C
- (SITOutdoorLocationOptions *_Nonnull)merge: (SITOutdoorLocationOptions *_Nonnull)options;
Swift
func merge(_ options: SITOutdoorLocationOptions) -> SITOutdoorLocationOptions
Return Value
new `SITOutdoorLocationOptions’ object.