MSFAssetPackage
Objective-C
@interface MSFAssetPackage : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFAssetPackage : NSObject
An abstract asset package class. Contains methods to list and load assets.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Returns list of assets in the asset package. All listed assets can read using loadAsset API.
Declaration
Objective-C
- (MSFStringVector *)getAssetNames;Swift
func getAssetNames() -> MSFStringVector!Return Value
List of asset names.
-
Loads the specified asset from the asset package.
Declaration
Objective-C
- (MSFBinaryData *)loadAsset:(NSString *)name;Swift
func loadAsset(_ name: String!) -> MSFBinaryData!Parameters
nameThe asset name to read.
Return Value
Asset data, if the asset exists and was successfully read. Null pointer otherwise.
-
Undocumented
Declaration
Objective-C
-(id)init;Swift
init!() -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()