Class that manages the connection and data retrieval between your app, Terra, and Apple Health/Freestylelibre
Initialisation
Terra.instance(devId: String,
referenceId: String?,
completion: @escaping (TerraManager?, TerraError?) -> Void)
devId: String
➡ The developer identifier given to your after you signed up on TerrareferenceId: String?
➡ This is used by you to identify a user from your server to a terra usercompletion: @escaping (TerraManager?, TerraError?) -> Void
➡ A callback function that is called when the TerraManager class is initialised. If an error has occurred in creation, then the completion will return aTerraError
class. Highly recommended to wait for this callback before proceeding