Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
941 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 | */
|
---|
| 8 | import { Logger } from '../logger';
|
---|
| 9 | import { 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 | */
|
---|
| 14 | export 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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.