RSDResourceConfig

open class RSDResourceConfig : NSObject

RSDResourceConfig is designed as an overridable resource configuration manager. The functions and properties are intended to be overridable in the app by implementing a custom extension of the function with the same name. This is designed to use app-wins namespace conflict resolution that is typical of obj-c architecture.

  • Queries the resource config for the relative URL for a given resource object. Default return is nil.

    Declaration

    Swift

    @objc
    open class func relativeURL(for resource: Any?) -> URL?

    Parameters

    resource

    The resource object.

    Return Value

    The relative URL to apply to the resource object.

  • Queries the resource config for the bundle for a given resource object. Default return is nil.

    Declaration

    Swift

    @objc
    open class func resourceBundle(for resource: Any?) -> Bundle?

    Parameters

    resource

    The resource object.

    Return Value

    The bundle to use to get the resource object.