SCCameraKitLocationDataProvider
Objective-C
@protocol SCCameraKitLocationDataProvider <NSObject>
Swift
protocol LocationDataProvider : NSObjectProtocol
Protocol to provide device motion data and handle starting/updating/stopping
-
Current location data
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) CLLocation *location;
Swift
var location: CLLocation? { get }
-
Start updating location data with params
Warning
If the user has not been prompted for location permission, it is the class’s responsibility to prompt them.Declaration
Objective-C
- (void)startUpdatingWithParameters: (nonnull id<SCCameraKitLocationParameters>)parameters;
Swift
func startUpdating(with parameters: LocationParameters)
Parameters
parameters
location params
-
Stop updating location
Declaration
Objective-C
- (void)stopUpdating;
Swift
func stopUpdating()