MLKitPoseDetectionCommon Framework Reference

  • This document provides globally available type definitions, including pose detector modes, pose detection callback, and pose landmark type.

  • MLKPoseDetectionCallback is a block that provides the results of pose detection, including an array of detected poses and any potential errors.

  • MLKPoseLandmarkType defines the type of a pose landmark.

  • MLKPoseDetectorMode is an enumeration defining the different modes available for the pose detector.

Type Definitions

The following type definitions are available globally.

  • @enum PoseDetectorMode Pose detector modes.

    Declaration

    Objective-C

    typedef NSInteger MLKPoseDetectorMode
  • A block containing the pose detection results.

    Declaration

    Objective-C

    typedef void (^MLKPoseDetectionCallback)(NSArray<MLKPose *> *_Nullable,
                                             NSError *_Nullable)

    Parameters

    poses

    The array of poses detected in the given image or nil if there was an error. If no poses are detected, then an empty array will be returned.

    error

    The error or nil.

  • Defines a pose landmark type.

    Declaration

    Objective-C

    typedef NSString *MLKPoseLandmarkType