# AnalyticsAPI Protocol

    public protocol AnalyticsAPI

Analytics Interface

- `metadata`

  Analytics metadata object.

  #### Declaration

  Swift

      var metadata: AnalyticsMetadata? { get set }

- `reportWarnings`

  Enable or disable warning reports. Default is false.

  #### Declaration

  Swift

      var reportWarnings: Bool { get set }

- `filterOutgoingErrorReport`

  Filter outgoing error reports. If the closure returns nil, the error report is dropped.

  #### Declaration

  Swift

      var filterOutgoingErrorReport: ((_ error: PRESTOerror) -> AnalyticsErrorReport?)? { get set }