FIROptionsInternal.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright 2017 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. #import "FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h"
  17. /**
  18. * This header file exposes the initialization of FirebaseOptions to internal use.
  19. */
  20. @interface FIROptions ()
  21. /**
  22. * `resetDefaultOptions` and `initInternalWithOptionsDictionary` are exposed only for unit tests.
  23. */
  24. + (void)resetDefaultOptions;
  25. /**
  26. * Initializes the options with dictionary. The above strings are the keys of the dictionary.
  27. * This is the designated initializer.
  28. */
  29. - (instancetype)initInternalWithOptionsDictionary:(NSDictionary *)serviceInfoDictionary
  30. NS_DESIGNATED_INITIALIZER;
  31. /**
  32. * `defaultOptions` and `defaultOptionsDictionary` are exposed in order to be used in FirebaseApp
  33. * and other first party services.
  34. */
  35. + (FIROptions *)defaultOptions;
  36. + (NSDictionary *)defaultOptionsDictionary;
  37. /**
  38. * Indicates whether or not Analytics collection was explicitly enabled via a plist flag or at
  39. * runtime.
  40. */
  41. @property(nonatomic, readonly) BOOL isAnalyticsCollectionExplicitlySet;
  42. /**
  43. * Whether or not Analytics Collection was enabled. Analytics Collection is enabled unless
  44. * explicitly disabled in GoogleService-Info.plist.
  45. */
  46. @property(nonatomic, readonly) BOOL isAnalyticsCollectionEnabled;
  47. /**
  48. * Whether or not Analytics Collection was completely disabled. If true, then
  49. * isAnalyticsCollectionEnabled will be false.
  50. */
  51. @property(nonatomic, readonly) BOOL isAnalyticsCollectionDeactivated;
  52. /**
  53. * The version ID of the client library, e.g. @"1100000".
  54. */
  55. @property(nonatomic, readonly, copy) NSString *libraryVersionID;
  56. /**
  57. * The flag indicating whether this object was constructed with the values in the default plist
  58. * file.
  59. */
  60. @property(nonatomic) BOOL usingOptionsFromDefaultPlist;
  61. /**
  62. * Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in
  63. * GoogleService-Info.plist.
  64. */
  65. @property(nonatomic, readonly) BOOL isMeasurementEnabled;
  66. /**
  67. * Whether or not editing is locked. This should occur after `FirebaseOptions` has been set on a
  68. * `FirebaseApp`.
  69. */
  70. @property(nonatomic, getter=isEditingLocked) BOOL editingLocked;
  71. @end