| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef IOS_CHROME_APP_APPLICATION_DELEGATE_METRIC_KIT_SUBSCRIBER_H_ |
| #define IOS_CHROME_APP_APPLICATION_DELEGATE_METRIC_KIT_SUBSCRIBER_H_ |
| |
| #import <Foundation/Foundation.h> |
| #import <MetricKit/MetricKit.h> |
| |
| extern NSString* const kChromeMetricKitPayloadsDirectory; |
| |
| // A subscriber that save MetricKit reports to the application document |
| // directory. |
| API_AVAILABLE(ios(13.0)) |
| @interface MetricKitSubscriber : NSObject <MXMetricManagerSubscriber> |
| + (instancetype)sharedInstance; |
| |
| // Whether the MetricKit collection is enabled. |
| @property(nonatomic, assign, getter=isEnabled) BOOL enabled; |
| @end |
| |
| #endif // IOS_CHROME_APP_APPLICATION_DELEGATE_METRIC_KIT_SUBSCRIBER_H_ |