FIRUserPropertyNames.h 1.5 KB

12345678910111213141516171819202122232425262728
  1. /// @file FIRUserPropertyNames.h
  2. ///
  3. /// Predefined user property names.
  4. ///
  5. /// A UserProperty is an attribute that describes the app-user. By supplying UserProperties, you can
  6. /// later analyze different behaviors of various segments of your userbase. You may supply up to 25
  7. /// unique UserProperties per app, and you can use the name and value of your choosing for each one.
  8. /// UserProperty names can be up to 24 characters long, may only contain alphanumeric characters and
  9. /// underscores ("_"), and must start with an alphabetic character. UserProperty values can be up to
  10. /// 36 characters long. The "firebase_", "google_", and "ga_" prefixes are reserved and should not
  11. /// be used.
  12. #import <Foundation/Foundation.h>
  13. /// Indicates whether events logged by Google Analytics can be used to personalize ads for the user.
  14. /// Set to "YES" to enable, or "NO" to disable. Default is enabled. See the
  15. /// <a href="https://firebase.google.com/support/guides/disable-analytics">documentation</a> for
  16. /// more details and information about related settings.
  17. ///
  18. /// <pre>
  19. /// Analytics.setUserProperty("NO", forName: AnalyticsUserPropertyAllowAdPersonalizationSignals)
  20. /// </pre>
  21. static NSString *const kFIRUserPropertyAllowAdPersonalizationSignals
  22. NS_SWIFT_NAME(AnalyticsUserPropertyAllowAdPersonalizationSignals) = @"allow_personalized_ads";
  23. /// The method used to sign in. For example, "google", "facebook" or "twitter".
  24. static NSString *const kFIRUserPropertySignUpMethod
  25. NS_SWIFT_NAME(AnalyticsUserPropertySignUpMethod) = @"sign_up_method";