NTAssetUtils


@interface NTAssetUtils : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A helper class for managing application-bundled assets.

  • Loads the specified bundled resource.

    Declaration

    Objective-C

    + (NTBinaryData *)loadAsset:(NSString *)path;

    Parameters

    path

    The path of the resource to load. The path is relative to application root folder.

    Return Value

    The loaded resource as a byte vector or null if the resource was not found or could not be loaded.

  • Calculates path for the bundled resource.

    Declaration

    Objective-C

    + (NSString *)calculateResourcePath:(NSString *)resourceName;

    Parameters

    resourceName

    The name of the resource.

    Return Value

    The full path for the resource. Result will be empty string if the resource was not found.

  • Calculates writable path for the given file name.

    Declaration

    Objective-C

    + (NSString *)calculateWritablePath:(NSString *)fileName;

    Parameters

    fileName

    The file name to use.

    Return Value

    The full path for the given file name.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;