SITEnumMapper

Objective-C

@interface SITEnumMapper : NSObject

Swift

class SITEnumMapper : NSObject

Class to map Situm enums to strings

SITLocationState

  • Map the SITLocationState state to a string. The string to wich are mapped are declared as constan strings in this class kSITLocationStarted -> SITLocationStartedString kSITLocationCalculating -> SITLocationCalculatingString kSITLocationStopped ->SITLocationStoppedString kSITLocationUserNotInBuilding -> SITLocationUserNotInBuildingString kSITLocationCompassNeedsCalibration -> SITLocationCompassNeedsCalibrationString

    Declaration

    Objective-C

    - (NSString *_Nonnull)mapLocationStateToString:(SITLocationState)state;

    Swift

    func mapLocationState(toString state: SITLocationState) -> String

    Parameters

    state

    SITLocationState value that indicates the actual state of the system

    Return Value

    A string describing the SITLocationState