RRAvatar3DUserAdjustmentsLayoutState

Objective-C

@interface RRAvatar3DUserAdjustmentsLayoutState : NSObject

Swift

class RRAvatar3DUserAdjustmentsLayoutState : NSObject

This class represents a captured state of an RRAvatar3DUserAdjustmentsLayout instance. This state class stores informations about applied morph factors as well as the body shape and pose.

  • Saving the layout state to a file.

    Declaration

    Objective-C

    - (BOOL)saveToFile:(nonnull NSString *)filePath
        didFailWithError:(NSError *_Nullable *_Nullable)error;

    Swift

    func save(toFile filePath: String) throws

    Parameters

    filePath

    The file path to the state file.

    error

    An optional pointer to an NSError pointer. When this method fails, it will set an NSError instance to this pointer if provided.

    Return Value

    YES if successful, NO otherwise.

  • Loading a state from file.

    Declaration

    Objective-C

    + (RRAvatar3DUserAdjustmentsLayoutState *_Nullable)loadFromFile:
        (nonnull NSString *)filePath;

    Swift

    class func load(fromFile filePath: String) -> RRAvatar3DUserAdjustmentsLayoutState?

    Parameters

    filePath

    The file path to the state file.

    Return Value

    The loaded state instance on success. nil otherwise