UNPKG

941 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Logger } from '../logger';
9import { Analytics, EventOptions, PageviewOptions, ScreenviewOptions, TimingOptions } from './api';
10/**
11 * Analytics implementation that logs analytics events to a logger. This should be used for
12 * debugging mainly.
13 */
14export declare class LoggingAnalytics implements Analytics {
15 protected _logger: Logger;
16 constructor(_logger: Logger);
17 event(category: string, action: string, options?: EventOptions): void;
18 screenview(screenName: string, appName: string, options?: ScreenviewOptions): void;
19 pageview(path: string, options?: PageviewOptions): void;
20 timing(category: string, variable: string, time: string | number, options?: TimingOptions): void;
21 flush(): Promise<void>;
22}