VMDFile

Objective-C

@protocol VMDFile <NSObject>

Swift

protocol VMDFile : NSObjectProtocol

File type supported by VM SDK

Since

1.1

Required Methods

  • Declaration

    Objective-C

    - (nonnull NSURL *)getUrl;

    Swift

    func getUrl() -> URL

    Return Value

    NSURL with the path to this VMD file

  • Declaration

    Objective-C

    - (nullable NSData *)getData;

    Swift

    func getData() -> Data?

    Return Value

    NSData contained within the file

  • Check if associated vmd file exists

    Declaration

    Objective-C

    - (BOOL)checkFileExists:(NSError *_Nullable *_Nullable)error;

    Swift

    func checkExists() throws

    Return Value

    false if the file exists, true otherwise and the error will be set

Optional Methods

  • Declaration

    Objective-C

    - (nonnull NSString *)getLocallySavedFilePath;

    Swift

    optional func getLocallySavedFilePath() -> String

    Return Value

    Local file path on the device