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.
- Tag: Category
-
Removes the plugin registered for
keyfrom the list of Plugins that implement functionality for this category. If no plugin has been added forkey, no action is taken, making this method safe to call multiple times.See: Amplify.add(plugin:)
- Tag: Category.removePlugin
Declaration
Swift
func removePlugin(for key: PluginKey)Parameters
keyThe key used to
addthe plugin -
logExtension methodA default logger for the category
- Tag: Category.log
Declaration
Swift
var log: Logger { get }
View on GitHub