MPPositionProvider

@protocol MPPositionProvider <NSObject>

Protocol specifying how an indoor positioning provider should be implemented if the users location is to be exposed to MPMapControl

  • Start the provider. The argument value is depending on the implementation.

    Declaration

    Objective-C

    - (void)startPositioning:(NSString *)arg;

    Swift

    func startPositioning(_ arg: String!)

    Parameters

    arg

    The argument value is depending on the implementation

  • Stop the provider. The argument value is depending on the implementation.

    Declaration

    Objective-C

    - (void)stopPositioning:(NSString *)arg;

    Swift

    func stopPositioning(_ arg: String!)

    Parameters

    arg

    The argument value is depending on the implementation

  • Start the provider after specified number of milliseconds. The argument value is depending on the implementation.

    Declaration

    Objective-C

    - (void)startPositioningAfter:(int)millis arg:(NSString *)arg;

    Swift

    func startPositioning(after millis: Int32, arg: String!)

    Parameters

    millis

    The number of milliseconds before the provider will start

    arg

    The argument value is depending on the implementation

  • The running state of the provider

    Declaration

    Objective-C

    - (BOOL)isRunning;

    Swift

    func isRunning() -> Bool

    Return Value

    The running state. YES means the provider is running.

  • Delegate object. The receiver of user positions.

    Declaration

    Objective-C

    @property (readwrite, atomic) id<MPPositionProviderDelegate> delegate;

    Swift

    weak var delegate: MPPositionProviderDelegate! { get set }
  • Latest position result if any.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) MPPositionResult *latestPositionResult;

    Swift

    var latestPositionResult: MPPositionResult! { get set }
  • Provider type stored as an integer. Currently not used by MPMapControl.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) int providerType;

    Swift

    var providerType: Int32 { get set }