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
 
17
#import "FirebasePerformance/Sources/Gauges/FPRGaugeCollector.h"
18
#import "FirebasePerformance/Sources/Gauges/Memory/FPRMemoryGaugeData.h"
19
 
20
NS_ASSUME_NONNULL_BEGIN
21
 
22
@class FPRMemoryGaugeCollector;
23
 
24
/** Delegate method for the memory Gauge collector to report back the memory gauge data. */
25
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
26
@protocol FPRMemoryGaugeCollectorDelegate
27
 
28
/**
29
 * Reports the collected memory gauge data back to its delegate.
30
 *
31
 * @param collector memory gauge collector that collected the information.
32
 * @param gaugeData memory gauge data.
33
 */
34
- (void)memoryGaugeCollector:(FPRMemoryGaugeCollector *)collector
35
                   gaugeData:(FPRMemoryGaugeData *)gaugeData;
36
 
37
@end
38
 
39
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
40
@interface FPRMemoryGaugeCollector : NSObject <FPRGaugeCollector>
41
 
42
/** Reference to the delegate object. */
43
@property(nonatomic, weak, readonly) id<FPRMemoryGaugeCollectorDelegate> delegate;
44
 
45
/**
46
 * Initializes the memory collector object with the delegate object provided.
47
 *
48
 * @param delegate Delegate object to which the memory gauge data is provided.
49
 * @return Instance of the memory gauge collector.
50
 */
51
- (instancetype)initWithDelegate:(id<FPRMemoryGaugeCollectorDelegate>)delegate
52
    NS_DESIGNATED_INITIALIZER;
53
 
54
/**
55
 * Initializer for the memory Gauge collector. This is not available.
56
 */
57
- (instancetype)init NS_UNAVAILABLE;
58
 
59
@end
60
 
61
NS_ASSUME_NONNULL_END