Configuration
#
Custom storageBeacon iOS SDK is not a stateless library and bases part of its functionality on preserved data. By default the SDK stores its data in UserDefaults
. However, it is possible to override the default storage and provide your own implementation. The BeaconCore
package ships with 3 public protocols that can be satisfied and provided externally during the Beacon.WalletClient
setup: Storage
, ExtendedStorage
(an extended version of Storage
) and SecureStorage
.
#
PluginsSome packages may require additional data to store. Those packages usually come with their own storage plugin protocols which can be satisfied and provided externally.
BeaconTransportP2PMatrix
#
The BeaconTransportP2PMatrix
package defines P2PMatrixStoragePlugin
and ExtendedP2PMatrixStoragePlugin
protocols.
#
Custom Matrix nodesYou can provide your own Matrix node URLs while setting Beacon.WalletClient
up with the BeaconTransportP2PMatrix
transport layer. Use the Transport.P2P.Matrix.connection
factory arguments to set your values.
#
Custom URLSessionYou can use your own URLSession
implementation while setting Beacon.WalletClient
up with BeaconTransportP2PMatrix
transport layer. Use the Transport.P2P.Matrix.connection
factory arguments to provide an instance.