Skip to content

Commit 0eb43e8

Browse files
accuracyring implementation in ios wrld skd buddy: Ali (#38)
1 parent 582bc18 commit 0eb43e8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/private/WRLDBlueSphere.mm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ - (void)setEnabled:(bool)enabled
6363
m_pBlueSphereApi->SetEnabled(_enabled);
6464
}
6565

66+
- (void)setAccuracyRingEnabled:(bool)accuracyRingEnabled
67+
{
68+
_accuracyRingEnabled = accuracyRingEnabled;
69+
m_pBlueSphereApi->SetAccuracyRingEnabled(_accuracyRingEnabled);
70+
}
71+
72+
-(void)setAccuracyInMeters:(float)accuracyInMeters
73+
{
74+
_accuracyInMeters = accuracyInMeters;
75+
m_pBlueSphereApi->SetCurrentLocationAccuracy(accuracyInMeters);
76+
}
77+
6678
- (void)setCoordinate:(CLLocationCoordinate2D)coordinate
6779
heading:(CLLocationDirection) heading
6880
{

src/public/WRLDBlueSphere.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ NS_ASSUME_NONNULL_BEGIN
2929
/// The property that determines if the blue sphere should be displayed and assets loaded.
3030
@property (nonatomic) bool enabled;
3131

32+
/// The property that determines if the accracy ring should be displayed.
33+
@property (nonatomic) bool accuracyRingEnabled;
34+
35+
/// The property that determines radius of accuracy ring in meters.
36+
@property (nonatomic) float accuracyInMeters;
37+
3238
/*!
3339
Place the blue sphere inside an indoor map on a specific floor.
3440
@param indoorMapId The ID of an indoor map the bue sphere should be inside. (See WRLDIndoorMap).

0 commit comments

Comments
 (0)