diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-03-05 18:00:11 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-03-10 17:08:58 -0800 |
commit | e36218a8668316e8c1b0bcc06d43dad31461615c (patch) | |
tree | 04d5e58ae0c4dea4b0a50e034a8a630564cb7a53 /platform/darwin/src/NSBundle+MGLAdditions.h | |
parent | 081ee9fbefbdb37f116a5bf2c0383586bce6608a (diff) | |
download | qtlocation-mapboxgl-e36218a8668316e8c1b0bcc06d43dad31461615c.tar.gz |
[osx] Added OS X support for offline downloads
Diffstat (limited to 'platform/darwin/src/NSBundle+MGLAdditions.h')
-rw-r--r-- | platform/darwin/src/NSBundle+MGLAdditions.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/darwin/src/NSBundle+MGLAdditions.h b/platform/darwin/src/NSBundle+MGLAdditions.h new file mode 100644 index 0000000000..52ef7fbfa7 --- /dev/null +++ b/platform/darwin/src/NSBundle+MGLAdditions.h @@ -0,0 +1,24 @@ +#import <Foundation/Foundation.h> + +#import "MGLTypes.h" + +NS_ASSUME_NONNULL_BEGIN + +void mgl_linkBundleCategory(); + +@interface NSBundle (MGLAdditions) + +/// Returns the bundle containing the SDK’s classes and Info.plist file. ++ (instancetype)mgl_frameworkBundle; + ++ (nullable NSString *)mgl_frameworkBundleIdentifier; + ++ (nullable NS_DICTIONARY_OF(NSString *, id) *)mgl_frameworkInfoDictionary; + +/// The relative path to the directory containing the SDK’s resource files, or +/// `nil` if the files are located directly within the bundle’s root directory. +@property (readonly, copy, nullable) NSString *mgl_resourcesDirectory; + +@end + +NS_ASSUME_NONNULL_END |