AMAAppMetricaPlugins protocol
The AMAAppMetricaPlugins protocol is an extension of AMAAppMetricaCrashes.
You can get an instance of the object that implements AMAAppMetricaPlugins by calling the pluginExtension method in AMAAppMetricaCrashes.
One AMAAppMetricaPlugins instance is created for each reporter. You can request it every time or store a reference for future use.
Instance methods
| Sends an unhandled error message. | |
| Sends an error message. | |
| Sends an error message with a short description. | 
Method descriptions
-reportUnhandledException:onFailure:
- (void)reportUnhandledException:(AMAPluginErrorDetails *)errorDetails
                       onFailure:(nullable void (^)(NSError *error))onFailure
reportUnhandledException(exception:onFailure:);
Sends a message about an unhandled error. For more information, see AMAPluginErrorDetails.
Parameters:
| 
 | Object that describes the error. | 
| 
 | Callback method to call if an error occurs while sending the message. The  | 
-reportError:message:onFailure:
- (void)reportError:(AMAPluginErrorDetails *)errorDetails
            message:(nullable NSString *)message
          onFailure:(nullable void (^)(NSError *error))onFailure
reportError(error:message:onFailure:);
Sends a custom error message. Errors are grouped using backtrace. To change the grouping parameter, use reportErrorWithIdentifier:message:details:onFailure:. For more information, see AMAPluginErrorDetails.
Parameters:
| 
 | Object with error details. | 
| 
 | Short error description. | 
| 
 | Callback method to call if an error occurs while sending the message. The  | 
-reportErrorWithIdentifier:message:details:onFailure:
- (void)reportErrorWithIdentifier:(NSString *)identifier
                          message:(nullable NSString *)message
                          details:(nullable AMAPluginErrorDetails *)errorDetails
                        onFailure:(nullable void (^)(NSError *error))onFailure
reportError(identifier:message:error:onFailure:);
Sends an error message with a short description. Errors are grouped by the passed ID. To group them using backtrace instead, use the reportError:message:onFailure: method. For more information, see AMAPluginErrorDetails.
Parameters:
| 
 | ID used for grouping. | 
| 
 | Short error description. | 
| 
 | Object with error details. | 
| 
 | Callback method to call if an error occurs while sending the message. The  |