ProfileMetricsController Actions
3 actions registered.
| Name | Deprecated |
|---|---|
clearState | |
getState | |
skipInitialDelay |
ProfileMetricsController:clearState
Package: @metamask/profile-metrics-controller
Reset the controller to its default state. Clients call this on wallet reset so the next wallet does not inherit the previous wallet's sync queue and reported accounts. Allow proof reconciliation to run again for the new wallet.
Waits for an in-flight poll to finish first, so that it cannot write back to the cleared state.
Handler signature:
() => Promise<void>
ProfileMetricsController:getState
Package: @metamask/profile-metrics-controller
Retrieves the state of the ProfileMetricsController.
Handler signature:
() => ProfileMetricsControllerState
ProfileMetricsController:skipInitialDelay
Package: @metamask/profile-metrics-controller
Skip the initial delay period by setting the end timestamp to the current time. Metrics will be sent on the next poll.
Handler signature:
() => void