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
key
from 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
key
The key used to
add
the plugin -
log
Extension methodA default logger for the category
- Tag: Category.log
Declaration
Swift
var log: Logger { get }