Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/*
2
 * Copyright 2018 Google
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
 
17
#ifndef FIRLibrary_h
18
#define FIRLibrary_h
19
 
20
#import <Foundation/Foundation.h>
21
 
22
@class FIRApp;
23
@class FIRComponent;
24
 
25
NS_ASSUME_NONNULL_BEGIN
26
 
27
/// Provide an interface to register a library for userAgent logging and availability to others.
28
NS_SWIFT_NAME(Library)
29
@protocol FIRLibrary
30
 
31
/// Returns one or more Components that will be registered in
32
/// FirebaseApp and participate in dependency resolution and injection.
33
+ (NSArray<FIRComponent *> *)componentsToRegister;
34
 
35
@optional
36
/// Implement this method if the library needs notifications for lifecycle events. This method is
37
/// called when the developer calls `FirebaseApp.configure()`.
38
+ (void)configureWithApp:(FIRApp *)app;
39
 
40
@end
41
 
42
NS_ASSUME_NONNULL_END
43
 
44
#endif /* FIRLibrary_h */