YMMYandexMetricaPlugins protocol

Extension for YMMYandexMetrica. Used for sending errors from plugins.

You can get an object instance by calling the YMMYandexMetrica#getPluginExtension method. One object instance will be created.

To use the protocol, initialize the library using the activateWithConfiguration method.

Instance methods

-reportUnhandledException:onFailure:

Sends an unhandled error.

-reportError:message:onFailure:

Sends a custom error message.

-reportErrorWithIdentifier:message:details:onFailure:

Sends a custom error message with the ID.

-handlePluginInitFinished

Notifies AppMetrica that plugin initialization has completed.

-reportUnhandledException:onFailure:

Sends an unhandled error.

-reportError:message:onFailure:

Sends a custom error message.

-reportErrorWithIdentifier:message:details:onFailure:

Sends a custom error message with the ID.

-handlePluginInitFinished

Notifies AppMetrica that plugin initialization has completed.

Method descriptions

reportUnhandledException:onFailure:


- (void)reportUnhandledException:(YMMPluginErrorDetails *)errorDetails
                       onFailure:(nullable void (^)(NSError *error))onFailure

Sends an unhandled error.

Parameters:
errorDetails Instance with error description.
onFailure The block that is executed when an error occurs. The error is passed as a block argument.
errorDetails Instance with error description.
onFailure The block that is executed when an error occurs. The error is passed as a block argument.

reportError:message:onFailure:


- (void)reportUnhandledException:(YMMPluginErrorDetails *)errorDetails
                       onFailure:(nullable void (^)(NSError *error))onFailure
            

Sends a custom error message.

Errors are grouped by backtrace.

Parameters:
errorDetails

Instance with error description.

message