CoreMotionActivityInterpreter

Undocumented

  • This method must be implemented and should do lightweight preprocessing of raw CMMotionActivity, as returned from CMMotionActivityManager, and pack them into CoreMotionActivity instances. The returned array is expected to contain all activities in order, oldest to newest.

    Declaration

    Swift

    func preprocess(activities: [CMMotionActivity]) -> [CoreMotionActivity]

    Parameters

    activities

    The activities to preprocess

    Return Value

    Preprocessed and packaged motion activities

  • Declaration

    Swift

    func interpret(activities: [InterpretedCoreMotionActivity]) -> [InterpretedCoreMotionActivity]