FIRDynamicLink.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. #import <Foundation/Foundation.h>
  17. NS_ASSUME_NONNULL_BEGIN
  18. /**
  19. * @file FIRDynamicLink.h
  20. * @abstract Dynamic Link object used in Firebase Dynamic Links.
  21. */
  22. /**
  23. * @abstract The match type of the Dynamic Link.
  24. */
  25. typedef NS_ENUM(NSUInteger, FIRDLMatchType) {
  26. /**
  27. * The match has not been achieved.
  28. */
  29. FIRDLMatchTypeNone,
  30. /**
  31. * The match between the Dynamic Link and this device may not be perfect, hence you should not
  32. * reveal any personal information related to the Dynamic Link.
  33. */
  34. FIRDLMatchTypeWeak,
  35. /**
  36. * The match between the Dynamic Link and this device has high confidence but small possibility of
  37. * error still exist.
  38. */
  39. FIRDLMatchTypeDefault,
  40. /**
  41. * The match between the Dynamic Link and this device is exact, hence you may reveal personal
  42. * information related to the Dynamic Link.
  43. */
  44. FIRDLMatchTypeUnique,
  45. } NS_SWIFT_NAME(DLMatchType);
  46. /**
  47. * @class FIRDynamicLink
  48. * @abstract A received Dynamic Link.
  49. */
  50. NS_SWIFT_NAME(DynamicLink)
  51. @interface FIRDynamicLink : NSObject
  52. /**
  53. * @property url
  54. * @abstract The URL that was passed to the app.
  55. */
  56. @property(nonatomic, copy, readonly, nullable) NSURL *url;
  57. /**
  58. * @property matchType
  59. * @abstract The match type of the received Dynamic Link.
  60. */
  61. @property(nonatomic, assign, readonly) FIRDLMatchType matchType;
  62. /**
  63. * @property minimumAppVersion
  64. * @abstract The minimum iOS application version that supports the Dynamic Link. This is retrieved
  65. * from the imv= parameter of the Dynamic Link URL. Note: This is not the minimum iOS system
  66. * version, but the minimum app version. If app version of the opening app is less than the
  67. * value of this property, then app expected to open AppStore to allow user to download most
  68. * recent version. App can notify or ask user before opening AppStore.
  69. */
  70. @property(nonatomic, copy, readonly, nullable) NSString *minimumAppVersion;
  71. @end
  72. NS_ASSUME_NONNULL_END