Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2019 Google
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
#if CLS_TARGET_OS_HAS_UIKIT
17
#import <UIKit/UIKit.h>
18
#endif
19
 
20
__BEGIN_DECLS
21
 
22
#define FIRCLSApplicationActivityDefault \
23
  (NSActivitySuddenTerminationDisabled | NSActivityAutomaticTerminationDisabled)
24
 
25
/**
26
 * Type to indicate application installation source
27
 */
28
typedef NS_ENUM(NSInteger, FIRCLSApplicationInstallationSourceType) {
29
  FIRCLSApplicationInstallationSourceTypeDeveloperInstall = 1,
30
  // 2 and 3 are reserved for legacy values.
31
  FIRCLSApplicationInstallationSourceTypeAppStore = 4
32
};
33
 
34
/**
35
 * Returns the application bundle identifier with occurences of "/" replaced by "_"
36
 */
37
NSString* FIRCLSApplicationGetBundleIdentifier(void);
38
 
39
/**
40
 * Returns the SDK's bundle ID
41
 */
42
NSString* FIRCLSApplicationGetSDKBundleID(void);
43
 
44
/**
45
 * Returns the platform identifier, either: ios, mac, or tvos.
46
 * Catalyst apps are treated as mac.
47
 */
48
NSString* FIRCLSApplicationGetPlatform(void);
49
 
50
/**
51
 * Returns the operating system for filtering. Should be kept consistent with Analytics.
52
 */
53
NSString* FIRCLSApplicationGetFirebasePlatform(void);
54
 
55
/**
56
 * Returns the user-facing app name
57
 */
58
NSString* FIRCLSApplicationGetName(void);
59
 
60
/**
61
 * Returns the build number
62
 */
63
NSString* FIRCLSApplicationGetBundleVersion(void);
64
 
65
/**
66
 * Returns the human-readable build version
67
 */
68
NSString* FIRCLSApplicationGetShortBundleVersion(void);
69
 
70
/**
71
 * Returns a number to indicate how the app has been installed: Developer / App Store
72
 */
73
FIRCLSApplicationInstallationSourceType FIRCLSApplicationInstallationSource(void);
74
 
75
BOOL FIRCLSApplicationIsExtension(void);
76
NSString* FIRCLSApplicationExtensionPointIdentifier(void);
77
 
78
#if CLS_TARGET_OS_HAS_UIKIT
79
UIApplication* FIRCLSApplicationSharedInstance(void);
80
#else
81
id FIRCLSApplicationSharedInstance(void);
82
#endif
83
 
84
void FIRCLSApplicationOpenURL(NSURL* url,
85
                              NSExtensionContext* extensionContext,
86
                              void (^completionBlock)(BOOL success));
87
 
88
id<NSObject> FIRCLSApplicationBeginActivity(NSActivityOptions options, NSString* reason);
89
void FIRCLSApplicationEndActivity(id<NSObject> activity);
90
 
91
void FIRCLSApplicationActivity(NSActivityOptions options, NSString* reason, void (^block)(void));
92
 
93
__END_DECLS