The SDK exposes a stats method which could be used like the following on an initialized SDK instance:
var func stats(_ completion: (_ stats: [String : Any]?) -> ())
- (void)stats:(void(^)(NSDictionary<NSString *, id> *))completion;
The completion gives access to a dictionary containing the following keys:
cdn: Traffic downloaded from the CDN (cumulated bytes).
dna: Traffic downloaded from the DNA network (cumulated bytes).
upload: Traffic uploaded to the DNA network (cumulated bytes).
peers: Real time connected peers count.
status:Current SDK status