Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2020 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
 
15
#import <Foundation/Foundation.h>
16
#import "FirebasePerformance/Sources/Protogen/nanopb/perf_metric.nanopb.h"
17
 
18
NS_ASSUME_NONNULL_BEGIN
19
 
20
/** Logger used to dispatch events to Google Data Transport layer. */
21
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
22
@interface FPRGDTLogger : NSObject
23
 
24
/** Log source initialized against. */
25
@property(nonatomic, readonly) NSInteger logSource;
26
 
27
/** Default initializer. */
28
- (instancetype)init NS_UNAVAILABLE;
29
 
30
/**
31
 * Instantiates an instance of this class.
32
 *
33
 * @param logSource The log source for this logger to be used.
34
 * @return Instance of FPRGDTLogger.
35
 */
36
- (instancetype)initWithLogSource:(NSInteger)logSource NS_DESIGNATED_INITIALIZER;
37
 
38
/**
39
 * Logs an event that needs to be dispatched.
40
 *
41
 * @remark Events are logged/dispatched asynchrounously using a serial dispatch queue.
42
 * @param event The event to log.
43
 */
44
- (void)logEvent:(firebase_perf_v1_PerfMetric)event;
45
 
46
@end
47
 
48
NS_ASSUME_NONNULL_END