RRCaptureUploadInfo

Objective-C

@interface RRCaptureUploadInfo : NSObject

Swift

class RRCaptureUploadInfo : NSObject

RRCaptureUploadInfo aggregates all the information about capture session and avatar, which is needed to content service for the product to be created

  • Captured product name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nonnull name;

    Swift

    var name: String { get set }
  • Captured object or person height size

    Declaration

    Objective-C

    @property (nonatomic) NSInteger height;

    Swift

    var height: Int { get set }
  • Captured person session pose quality

    Declaration

    Objective-C

    @property (nonatomic) double quality;

    Swift

    var quality: Double { get set }
  • Captured person gender

    Declaration

    Objective-C

    @property (nonatomic) RRGender gender;

    Swift

    var gender: RRGender { get set }
  • Captured product type identifier 0 = UNDEFINED 1 = GARMENT 2 = OBJECT_3D 3 = GARMENT_3D 4 = AVATAR_3D 5 = OUTFIT 6 = AVATAR 7 = AVATAR_HEAD 8 = AVATAR_HEAD_3D

    Declaration

    Objective-C

    @property (nonatomic) NSInteger productType;

    Swift

    var productType: Int { get set }
  • Creates object dictionary for the easier JSON serialization - returns: NSDictionary representing upload info object

    Declaration

    Objective-C

    - (NSDictionary *_Nonnull)metadata;

    Swift

    func metadata() -> [AnyHashable : Any]
  • Initializes RRCaptureUploadInfo from the given capture session - parameter: session capture session needed to be uploaded - returns: RRCaptureUploadInfo instance

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithSession:(RRCaptureSession *_Nullable)session;

    Swift

    init(session: RRCaptureSession?)