Category

public protocol Category : AnyObject, CategoryTypeable, DefaultLogger

An Amplify Category stores certain global states, holds references to plugins for the category, and routes method requests to those plugins appropriately.

  • Removes the plugin registered for key from the list of Plugins that implement functionality for this category. If no plugin has been added for key, no action is taken, making this method safe to call multiple times.

    Declaration

    Swift

    func removePlugin(for key: PluginKey)

    Parameters

    key

    The key used to add the plugin

  • log Extension method

    A default logger for the category

    Declaration

    Swift

    var log: Logger { get }