RRTryOnSlot

Objective-C

@interface RRTryOnSlot : RRSlot

Swift

class RRTryOnSlot : RRSlot

This class defines a slot that can display a try-on

  • The avatar renderable used for try-on.

    Declaration

    Objective-C

    @property (nonatomic, strong) RRAvatarRenderable *_Nullable avatarRenderable;

    Swift

    var avatarRenderable: RRAvatarRenderable? { get set }
  • The garment renderables used for try-on. The latter garment in the array is always rendered outer most. The garment renderables are only rendered if the avatarRenderable property is not null.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<RRGarmentRenderable *> *_Nullable garmentRenderables;

    Swift

    var garmentRenderables: [RRGarmentRenderable]? { get set }
  • Defines whether the content is scaled based on the whole color image the avatar in the image.

    Declaration

    Objective-C

    @property (nonatomic) BOOL zoomToAvatar;

    Swift

    var zoomToAvatar: Bool { get set }