MSFBundleAssetPackage
Objective-C
@interface MSFBundleAssetPackage : MSFAssetPackage
Swift
class MSFBundleAssetPackage : MSFAssetPackage
An asset package based on the assets bundled with the application. On Android these live inside the APK, where no file path reaches them - which is what separates this from DirAssetPackage; on iOS and Windows they are the app bundle’s own files. Note: assets and directories with names starting with ‘.’ are ignored.
-
Constructs a bundle asset package rooted at the specified bundled directory.
Declaration
Objective-C
- (id)initWithBasePath:(NSString *)basePath;Swift
init!(basePath: String!)Parameters
basePathThe path of the directory inside the bundle, “” for the bundle root.
-
Constructs a bundle asset package rooted at the specified bundled directory, with a fallback asset package.
Declaration
Objective-C
- (id)initWithBasePath:(NSString *)basePath baseAssetPackage:(MSFAssetPackage *)baseAssetPackage;Swift
init!(basePath: String!, baseAssetPackage: MSFAssetPackage!)Parameters
basePathThe path of the directory inside the bundle, “” for the bundle root.
baseAssetPackageThe base asset package. If an asset is not found in the bundle, base asset package is used.
-
Returns the path of the bundled directory the assets are read from.
Declaration
Objective-C
- (NSString *)getBasePath;Swift
func getBasePath() -> String!Return Value
The path of the bundled directory containing the assets.
-
Returns the list of assets found in the bundle, ignoring the base asset package.
Declaration
Objective-C
- (MSFStringVector *)getLocalAssetNames;Swift
func getLocalAssetNames() -> MSFStringVector!Return Value
The list of asset names found in the bundle.
-
Rescans the bundled directory. Bundled assets do not change while the app runs, so this only matters when the listing was built before the platform could answer - on Android the asset manager is connected by the first MapView.
Declaration
Objective-C
- (void)reload;Swift
func reload() -
Undocumented
Declaration
Objective-C
- (MSFStringVector *)getAssetNames;Swift
func getAssetNames() -> MSFStringVector! -
Undocumented
Declaration
Objective-C
- (MSFBinaryData *)loadAsset:(NSString *)name;Swift
func loadAsset(_ name: String!) -> MSFBinaryData! -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()