UAModules

@interface UAModules : NSObject

An interface mapping modules to components, and providing hooks for common operations.

  • Produces all the modules currently known to the system.

    Declaration

    Objective-C

    - (nonnull NSArray<NSString *> *)allModuleNames;

    Swift

    func allModuleNames() -> [String]

    Return Value

    An array of module names.

  • Retrieves the component associated with the provided module name, or nil if one could not be found.

    Declaration

    Objective-C

    - (nullable UAComponent *)componentForModuleName:(nonnull NSString *)moduleName;

    Swift

    func component(forModuleName moduleName: String) -> UAComponent?

    Parameters

    moduleName

    The module name.

    Return Value

    The corresponding component, or nil if one was not found.