FIRInAppMessagingRenderingPrivate.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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:(NSURL *)primaryActionURL;
  32. @end
  33. @interface FIRInAppMessagingActionButton (Private)
  34. - (instancetype)initWithButtonText:(NSString *)btnText
  35. buttonTextColor:(UIColor *)textColor
  36. backgroundColor:(UIColor *)bkgColor;
  37. @end
  38. @interface FIRInAppMessagingImageData (Private)
  39. - (instancetype)initWithImageURL:(NSString *)imageURL imageData:(NSData *)imageData;
  40. @end
  41. @interface FIRInAppMessagingCampaignInfo (Private)
  42. - (instancetype)initWithMessageID:(NSString *)messageID
  43. campaignName:(NSString *)campaignName
  44. renderAsTestMessage:(BOOL)renderAsTestMessage;
  45. @end
  46. @interface FIRInAppMessagingAction (Private)
  47. - (instancetype)initWithActionText:(nullable NSString *)actionText actionURL:(NSURL *)actionURL;
  48. @end
  49. @interface FIRInAppMessagingDisplayMessage (Private)
  50. - (instancetype)initWithMessageID:(NSString *)messageID
  51. campaignName:(NSString *)campaignName
  52. renderAsTestMessage:(BOOL)renderAsTestMessage
  53. messageType:(FIRInAppMessagingDisplayMessageType)messageType
  54. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType;
  55. @end
  56. @interface FIRInAppMessagingModalDisplay (Private)
  57. - (instancetype)initWithMessageID:(NSString *)messageID
  58. campaignName:(NSString *)campaignName
  59. renderAsTestMessage:(BOOL)renderAsTestMessage
  60. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType
  61. titleText:(NSString *)title
  62. bodyText:(NSString *)bodyText
  63. textColor:(UIColor *)textColor
  64. backgroundColor:(UIColor *)backgroundColor
  65. imageData:(nullable FIRInAppMessagingImageData *)imageData
  66. actionButton:(nullable FIRInAppMessagingActionButton *)actionButton
  67. actionURL:(nullable NSURL *)actionURL;
  68. @end
  69. @interface FIRInAppMessagingBannerDisplay (Private)
  70. - (instancetype)initWithMessageID:(NSString *)messageID
  71. campaignName:(NSString *)campaignName
  72. renderAsTestMessage:(BOOL)renderAsTestMessage
  73. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType
  74. titleText:(NSString *)title
  75. bodyText:(NSString *)bodyText
  76. textColor:(UIColor *)textColor
  77. backgroundColor:(UIColor *)backgroundColor
  78. imageData:(nullable FIRInAppMessagingImageData *)imageData
  79. actionURL:(nullable NSURL *)actionURL;
  80. @end
  81. @interface FIRInAppMessagingImageOnlyDisplay (Private)
  82. - (instancetype)initWithMessageID:(NSString *)messageID
  83. campaignName:(NSString *)campaignName
  84. renderAsTestMessage:(BOOL)renderAsTestMessage
  85. triggerType:(FIRInAppMessagingDisplayTriggerType)triggerType
  86. imageData:(nullable FIRInAppMessagingImageData *)imageData
  87. actionURL:(nullable NSURL *)actionURL;
  88. @end
  89. NS_ASSUME_NONNULL_END