public interface MXMetricManagerSubscriber
A protocol that allows the conforming object to receive metric payloads from the metric manager.
In order to receive metric payloads, atleast one object must conform to this protocol and be subscribed to the metric manager.
Objects which conform to this protocol can be passed to addSubscriber:subscriber and removeSubscriber:subscriber to manage their subscription state.
| Modifier and Type | Method and Description |
|---|---|
default void |
didReceiveDiagnosticPayloads(NSArray<? extends MXDiagnosticPayload> payloads)
didReceiveDiagnosticPayloads:payloads
|
default void |
didReceiveMetricPayloads(NSArray<? extends MXMetricPayload> payloads)
didReceiveMetricPayloads:payloads
|
default void didReceiveMetricPayloads(NSArray<? extends MXMetricPayload> payloads)
This method is invoked when a new MXMetricPayload has been received.
You can expect for this method to be invoked atleast once per day when the app is running and subscribers are available.
If no subscribers are available, this method will not be invoked.
Atleast one subscriber must be available to receive metrics.
This method is invoked on a background queue.
payloads - An NSArray of MXMetricPayload objects. This array of payloads contains data from previous usage sessions.default void didReceiveDiagnosticPayloads(NSArray<? extends MXDiagnosticPayload> payloads)
This method is invoked when a new MXDiagnosticPayload has been received.
You can expect for this method to be invoked atleast once per day when the app is running and subscribers are available.
If no subscribers are available, this method will not be invoked.
Atleast one subscriber must be available to receive diagnostics.
This method is invoked on a background queue.
payloads - An NSArray of MXDiagnosticPayload objects. This array of payloads contains diagnostics from previous usage sessions.