// // RiveFactory.h // RiveRuntime // // Created by Maxwell Talbot on 08/11/2023. // Copyright © 2023 Rive. All rights reserved. // #ifndef RiveFactory_h #define RiveFactory_h #import #if TARGET_OS_IPHONE #import #else #import #endif @class RiveFont; NS_ASSUME_NONNULL_BEGIN @interface RiveRenderImage : NSObject - (nullable instancetype)initWithData:(NSData*)data; @end #ifdef WITH_RIVE_AUDIO @interface RiveAudio : NSObject @end #endif /* * RiveFactory */ @interface RiveFactory : NSObject #ifdef WITH_RIVE_TEXT - (RiveFont*)decodeFont:(NSData*)data; #if TARGET_OS_IPHONE || TARGET_OS_VISION || TARGET_OS_TV - (RiveFont*)decodeUIFont:(UIFont*)data NS_SWIFT_NAME(decodeFont(_:)); #else - (RiveFont*)decodeNSFont:(NSFont*)data NS_SWIFT_NAME(decodeFont(_:)); #endif #endif - (RiveRenderImage*)decodeImage:(NSData*)data; #ifdef WITH_RIVE_AUDIO - (RiveAudio*)decodeAudio:(NSData*)data; #endif @end NS_ASSUME_NONNULL_END #endif /* RiveFactory_h */