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
NS_ASSUME_NONNULL_BEGIN
18
 
19
/**
20
 * The Firebase Crashlytics `StackFrame` provides a way to construct the lines of
21
 * a stack trace for reporting along with a recorded `ExceptionModel`.
22
 */
23
NS_SWIFT_NAME(StackFrame)
24
@interface FIRStackFrame : NSObject
25
 
26
/** :nodoc: */
27
- (instancetype)init NS_UNAVAILABLE;
28
 
29
/**
30
 * Initializes a symbolicated `StackFrame` with the given required fields. Symbolicated
31
 * `StackFrame`s will appear in the Crashlytics dashboard as reported in these fields.
32
 *
33
 * @param symbol - The function or method name
34
 * @param file - the file where the exception occurred
35
 * @param line - the line number
36
 */
37
- (instancetype)initWithSymbol:(NSString *)symbol file:(NSString *)file line:(NSInteger)line;
38
 
39
/**
40
 * Creates a symbolicated `StackFrame` from an address. The address will be
41
 * symbolicated in the Crashlytics backend for the customer and reported in the
42
 * Crashlytics dashboard with the appropriate file name and line number. If an
43
 * invalid address is provided it will appear in the dashboard as missing.
44
 *
45
 * @param address - the address where the exception occurred
46
 */
47
+ (instancetype)stackFrameWithAddress:(NSUInteger)address;
48
 
49
/**
50
 * Creates a symbolicated `StackFrame` with the given required fields. Symbolicated
51
 * `StackFrame`s will appear in the Crashlytics dashboard as reported in these fields.
52
 *
53
 * @param symbol - The function or method name
54
 * @param file - the file where the exception occurred
55
 * @param line - the line number
56
 */
57
+ (instancetype)stackFrameWithSymbol:(NSString *)symbol
58
                                file:(NSString *)file
59
                                line:(NSInteger)line NS_SWIFT_UNAVAILABLE("");
60
 
61
@end
62
 
63
NS_ASSUME_NONNULL_END