FIRInAppMessagingRenderingPrivate.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. * Copyright 2019 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. NS_ASSUME_NONNULL_BEGIN
  17. @interface FIRInAppMessagingCardDisplay (Private)
  18. - (void)setBody:(NSString *_Nullable)body;
  19. - (void)setLandscapeImageData:(FIRInAppMessagingImageData *_Nullable)landscapeImageData;
  20. - (void)setSecondaryActionButton:(FIRInAppMessagingActionButton *_Nullable)secondaryActionButton;
  21. - (void)setSecondaryActionURL:(NSURL *_Nullable)secondaryActionURL;
  22. - (instancetype)initWithMessageID:(NSString *)messageID
  23. campaignName:(NSString *)campaignName
  24. renderAsTestMessage:(BOOL)renderAsTestMessage
  25. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType
  26. titleText:(NSString *)title
  27. textColor:(UIColor *)textColor
  28. portraitImageData:(FIRInAppMessagingImageData *)portraitImageData
  29. backgroundColor:(UIColor *)backgroundColor
  30. primaryActionButton:(FIRInAppMessagingActionButton *)primaryActionButton
  31. primaryActionURL:(nullable NSURL *)primaryActionURL
  32. appData:(NSDictionary *)appData;
  33. @end
  34. @interface FIRInAppMessagingActionButton (Private)
  35. - (instancetype)initWithButtonText:(NSString *)btnText
  36. buttonTextColor:(UIColor *)textColor
  37. backgroundColor:(UIColor *)bkgColor;
  38. @end
  39. @interface FIRInAppMessagingImageData (Private)
  40. - (instancetype)initWithImageURL:(NSString *)imageURL imageData:(NSData *)imageData;
  41. @end
  42. @interface FIRInAppMessagingCampaignInfo (Private)
  43. - (instancetype)initWithMessageID:(NSString *)messageID
  44. campaignName:(NSString *)campaignName
  45. renderAsTestMessage:(BOOL)renderAsTestMessage;
  46. @end
  47. @interface FIRInAppMessagingAction (Private)
  48. - (instancetype)initWithActionText:(nullable NSString *)actionText actionURL:(NSURL *)actionURL;
  49. @end
  50. @interface FIRInAppMessagingDisplayMessage (Private)
  51. - (instancetype)initWithMessageID:(NSString *)messageID
  52. campaignName:(NSString *)campaignName
  53. renderAsTestMessage:(BOOL)renderAsTestMessage
  54. messageType:(FIRInAppMessagingDisplayMessageType)messageType
  55. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType
  56. appData:(NSDictionary *)appData;
  57. @end
  58. @interface FIRInAppMessagingModalDisplay (Private)
  59. - (instancetype)initWithMessageID:(NSString *)messageID
  60. campaignName:(NSString *)campaignName
  61. renderAsTestMessage:(BOOL)renderAsTestMessage
  62. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType
  63. titleText:(NSString *)title
  64. bodyText:(NSString *)bodyText
  65. textColor:(UIColor *)textColor
  66. backgroundColor:(UIColor *)backgroundColor
  67. imageData:(nullable FIRInAppMessagingImageData *)imageData
  68. actionButton:(nullable FIRInAppMessagingActionButton *)actionButton
  69. actionURL:(nullable NSURL *)actionURL
  70. appData:(NSDictionary *)appData;
  71. @end
  72. @interface FIRInAppMessagingBannerDisplay (Private)
  73. - (instancetype)initWithMessageID:(NSString *)messageID
  74. campaignName:(NSString *)campaignName
  75. renderAsTestMessage:(BOOL)renderAsTestMessage
  76. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType
  77. titleText:(NSString *)title
  78. bodyText:(NSString *)bodyText
  79. textColor:(UIColor *)textColor
  80. backgroundColor:(UIColor *)backgroundColor
  81. imageData:(nullable FIRInAppMessagingImageData *)imageData
  82. actionURL:(nullable NSURL *)actionURL
  83. appData:(NSDictionary *)appData;
  84. @end
  85. @interface FIRInAppMessagingImageOnlyDisplay (Private)
  86. - (instancetype)initWithMessageID:(NSString *)messageID
  87. campaignName:(NSString *)campaignName
  88. renderAsTestMessage:(BOOL)renderAsTestMessage
  89. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType
  90. imageData:(nullable FIRInAppMessagingImageData *)imageData
  91. actionURL:(nullable NSURL *)actionURL
  92. appData:(NSDictionary *)appData;
  93. @end
  94. NS_ASSUME_NONNULL_END