AmplifyClass class abstract

Amplify singleton class.

This class can be extended to create a custom Amplify implementation. The default Amplify implementation will use method channels, and will only support iOS and Android platforms.

Constructors

AmplifyClass()
factory
AmplifyClass.protected()
Constructs a Core platform. Internal Use Only

Properties

Analytics AnalyticsCategory
The Analytics category.
final
API APICategory
The API category.
final
asyncConfig Future<AmplifyOutputs>
A future when completes when Amplify has been successfully configured.
no setter
Auth AuthCategory
The Auth category.
final
authProviderRepo AmplifyAuthProviderRepository
final
DataStore DataStoreCategory
The DataStore category.
final
dependencies → DependencyManager
Shared dependencies for use across categories.
latefinal
hashCode int
The hash code for this object.
no setterinherited
Hub AmplifyHub
The Amplify event hub.
final
isConfigured bool
Returns whether Amplify has been configured or not.
no setter
Notifications NotificationsCategory
The Notifications category.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Storage StorageCategory
The Storage category.
final
version String
The library version.
no setter

Methods

addPlugin(AmplifyPluginInterface plugin) Future<void>
Adds one plugin at a time. Note: this method can only be called before Amplify has been configured. Customers are expected to check the configuration state by calling Amplify.isConfigured
addPluginPlatform(AmplifyPluginInterface plugin) Future<void>
Adds the plugin in the platform-specific manner.
addPlugins(List<AmplifyPluginInterface> plugins) Future<void>
Adds multiple plugins at the same time. Note: this method can only be called before Amplify has been configured. Customers are expected to check the configuration state by calling Amplify.isConfigured
configure(String configuration) Future<void>
Configures Amplify with the provided configuration string. This method can only be called once, after all the plugins have been added and no plugin shall be added after amplify is configured. Customers are expected to call Amplify.isConfigured to check if their app is configured before calling this method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() Future<void>
Resets the Amplify implementation, removing all traces of Amplify from the device.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance AmplifyClass?
The instance of AmplifyClass to use.
getter/setter pair