Class NSBundle

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class NSBundle
extends NSObject
  • Constructor Details

    • NSBundle

      public NSBundle()
    • NSBundle

      protected NSBundle​(NSObject.Handle h, long handle)
    • NSBundle

      protected NSBundle​(NSObject.SkipInit skipInit)
    • NSBundle

      public NSBundle​(NSURL url)
    • NSBundle

      public NSBundle​(File file)
  • Method Details

    • getMainBundle

      public static NSBundle getMainBundle()
    • getAllBundles

      public static NSArray<NSBundle> getAllBundles()
    • getAllFrameworks

      public static NSArray<NSBundle> getAllFrameworks()
    • isLoaded

      public boolean isLoaded()
    • getBundleURL

      public NSURL getBundleURL()
    • getResourceURL

      public NSURL getResourceURL()
    • getExecutableURL

      public NSURL getExecutableURL()
    • getPrivateFrameworksURL

      public NSURL getPrivateFrameworksURL()
    • getSharedFrameworksURL

      public NSURL getSharedFrameworksURL()
    • getSharedSupportURL

      public NSURL getSharedSupportURL()
    • getBuiltInPlugInsURL

      public NSURL getBuiltInPlugInsURL()
    • getAppStoreReceiptURL

      public NSURL getAppStoreReceiptURL()
    • getBundlePath

      public String getBundlePath()
    • getResourcePath

      public String getResourcePath()
    • getExecutablePath

      public String getExecutablePath()
    • getPrivateFrameworksPath

      public String getPrivateFrameworksPath()
    • getSharedFrameworksPath

      public String getSharedFrameworksPath()
    • getSharedSupportPath

      public String getSharedSupportPath()
    • getBuiltInPlugInsPath

      public String getBuiltInPlugInsPath()
    • getBundleIdentifier

      public String getBundleIdentifier()
    • getInfoDictionary

      public NSDictionary<NSString,​?> getInfoDictionary()
    • getLocalizedInfoDictionary

      public NSDictionary<NSString,​?> getLocalizedInfoDictionary()
    • getPrincipalClass

      public Class<?> getPrincipalClass()
    • getPreferredLocalizations

      public List<String> getPreferredLocalizations()
    • getLocalizations

      public List<String> getLocalizations()
    • getDevelopmentLocalization

      public String getDevelopmentLocalization()
    • getExecutableArchitectures

      public List<NSBundleExecutableArchitectureType> getExecutableArchitectures()
    • loadNib

      public NSArray<?> loadNib​(String name, NSObject owner, UINibLoadingOptions options)
    • DidLoadNotification

      public static NSString DidLoadNotification()
    • LoadedClassesKey

      protected static NSString LoadedClassesKey()
    • init

      protected long init​(String path)
    • init

      protected long init​(NSURL url)
    • preflight

      public boolean preflight() throws NSErrorException
      Throws:
      NSErrorException
    • load

      public boolean load() throws NSErrorException
      Throws:
      NSErrorException
    • findAuxiliaryExecutableURL

      public NSURL findAuxiliaryExecutableURL​(String executableName)
    • findAuxiliaryExecutablePath

      public String findAuxiliaryExecutablePath​(String executableName)
    • findResourceURL

      public NSURL findResourceURL​(String name, String ext)
    • findResourceURL

      public NSURL findResourceURL​(String name, String ext, String subpath)
    • findResourceURL

      public NSURL findResourceURL​(String name, String ext, String subpath, String localizationName)
    • findResourceURLs

      public NSArray<NSURL> findResourceURLs​(String ext, String subpath)
    • findResourceURLs

      public NSArray<NSURL> findResourceURLs​(String ext, String subpath, String localizationName)
    • findResourcePath

      public String findResourcePath​(String name, String ext)
    • findResourcePath

      public String findResourcePath​(String name, String ext, String subpath)
    • findResourcePath

      public String findResourcePath​(String name, String ext, String subpath, String localizationName)
    • findResourcesPaths

      public List<String> findResourcesPaths​(String ext, String subpath)
    • findResourcesPaths

      public List<String> findResourcesPaths​(String ext, String subpath, String localizationName)
    • getLocalizedString

      public String getLocalizedString​(String key, String value, String tableName)
    • getInfoDictionaryObject

      public NSObject getInfoDictionaryObject​(String key)
    • getClassNamed

      public Class<?> getClassNamed​(String className)
    • getBundle

      public static NSBundle getBundle​(Class<?> aClass)
    • getBundle

      public static NSBundle getBundle​(String identifier)
    • findResourceURLInBundle

      public static NSURL findResourceURLInBundle​(String name, String ext, String subpath, NSURL bundleURL)
    • findResourceURLsInBundle

      public static List<String> findResourceURLsInBundle​(String ext, String subpath, NSURL bundleURL)
    • findResourcePathInBundle

      public static String findResourcePathInBundle​(String name, String ext, String bundlePath)
    • findResourcesPathsInBundle

      public static List<String> findResourcesPathsInBundle​(String ext, String bundlePath)
    • getPreferredLocalizations

      public static List<String> getPreferredLocalizations​(List<String> localizationsArray)
    • getPreferredLocalizations

      public static List<String> getPreferredLocalizations​(List<String> localizationsArray, List<String> preferencesArray)