RRTrueDepthKeyframe

Objective-C


@interface RRTrueDepthKeyframe : NSObject

Swift

class RRTrueDepthKeyframe : NSObject

This class is a data container that stores all informations related to a captured frame of the RRTrueDepthCaptureView class.

  • The frame ID of the frame

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger frameID;

    Swift

    var frameID: UInt { get }
  • The depth data of the frame

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSData *_Nonnull depthData;

    Swift

    var depthData: Data { get }
  • The color image data of the frame

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSData *_Nonnull colorData;

    Swift

    var colorData: Data { get }
  • The method creates an NSData instance containing the json encoded metadata of the frame

    Declaration

    Objective-C

    - (nonnull NSData *)metadataToJSON;

    Swift

    func metadataToJSON() -> Data