Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2021 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
NS_ASSUME_NONNULL_BEGIN
18
 
19
@class FIRCLSSettings;
20
@protocol FIRAnalyticsInterop;
21
@protocol FIRAnalyticsInteropListener;
22
 
23
/*
24
 * Registers a listener for Analytics events in Crashlytics
25
 * logs (aka. breadcrumbs), and sends events to the
26
 * Analytics SDK for Crash Free Users.
27
 */
28
@interface FIRCLSAnalyticsManager : NSObject
29
 
30
- (instancetype)initWithAnalytics:(nullable id<FIRAnalyticsInterop>)analytics;
31
- (instancetype)init NS_UNAVAILABLE;
32
+ (instancetype)new NS_UNAVAILABLE;
33
 
34
/*
35
 * Starts listening for Analytics events for Breadcrumbs.
36
 */
37
- (void)registerAnalyticsListener;
38
 
39
/*
40
 * Logs a Crashlytics crash session to Firebase Analytics for Crash Free Users.
41
 * @param crashTimeStamp The time stamp of the crash to be logged.
42
 */
43
+ (void)logCrashWithTimeStamp:(NSTimeInterval)crashTimeStamp
44
                  toAnalytics:(id<FIRAnalyticsInterop>)analytics;
45
 
46
/*
47
 * Public for testing.
48
 */
49
NSString *FIRCLSFIRAEventDictionaryToJSON(NSDictionary *eventAsDictionary);
50
 
51
@end
52
 
53
NS_ASSUME_NONNULL_END