FIRInAppMessagingRenderingPrivate.h 5.5 KB

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