Skip to content

Commit 825bc39

Browse files
committed
Fixing fiam docs
1 parent 874cca0 commit 825bc39

File tree

7 files changed

+64
-21
lines changed

7 files changed

+64
-21
lines changed

firebase-inappmessaging-display/src/main/java/com/google/firebase/inappmessaging/display/FirebaseInAppMessagingDisplay.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,15 @@
6666
* <p>Firebase In-App Messaging Display will automatically initialize, start listening for events,
6767
* and display eligible in-app messages.
6868
*
69-
* <p>This feature uses a Firebase Instance ID token to:
69+
* <p>This feature uses a Firebase Installation ID token to:
7070
*
7171
* <ul>
7272
* <li>identify the app instance
7373
* <li>fetch messages from the Firebase backend
7474
* <li>send usage metrics to the Firebase backend.
7575
* </ul>
7676
*
77-
* <p>To delete the Instance ID and the data associated with it, see {@link
78-
* FirebaseInstallationsApi#delete}.
77+
* <p>To delete the Installation ID and the data associated with it, see {@link}.
7978
*/
8079
@FirebaseAppScope
8180
public class FirebaseInAppMessagingDisplay extends FirebaseInAppMessagingDisplayImpl {

firebase-inappmessaging/src/main/java/com/google/firebase/inappmessaging/model/Action.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private Action(@Nullable String actionUrl, @Nullable Button button) {
6767
this.button = button;
6868
}
6969

70-
/** Gets URL for action */
70+
/** Gets the URL associated with this action */
7171
@Nullable
7272
public String getActionUrl() {
7373
return actionUrl;

firebase-inappmessaging/src/main/java/com/google/firebase/inappmessaging/model/CampaignMetadata.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616

1717
import androidx.annotation.NonNull;
1818

19-
/** Provides the following about any message, */
19+
/**
20+
* Provides the following about any message,
21+
* <li>Campaign ID
22+
* <li>Campaign Name
23+
* <li>Campaign Test Message State
24+
*/
2025
public class CampaignMetadata {
2126
private final String campaignId;
2227
private final String campaignName;
@@ -33,16 +38,19 @@ public CampaignMetadata(String campaignId, String campaignName, boolean isTestMe
3338
this.isTestMessage = isTestMessage;
3439
}
3540

41+
/** Gets the campaign id associated with this message */
3642
@NonNull
3743
public String getCampaignId() {
3844
return campaignId;
3945
}
4046

47+
/** Gets the campaign name associated with this message */
4148
@NonNull
4249
public String getCampaignName() {
4350
return campaignName;
4451
}
4552

53+
/** returns true if the message is a test message */
4654
public boolean getIsTestMessage() {
4755
return isTestMessage;
4856
}

firebase-inappmessaging/src/main/java/com/google/firebase/inappmessaging/model/CardMessage.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public ImageData getPortraitImageData() {
119119
return portraitImageData;
120120
}
121121

122-
/** Gets the {@link ImageData} displayed when the phone is in a landcscape orientation */
122+
/** Gets the {@link ImageData} displayed when the phone is in a landscape orientation */
123123
@Nullable
124124
public ImageData getLandscapeImageData() {
125125
return landscapeImageData;
@@ -148,8 +148,8 @@ public Action getSecondaryAction() {
148148
}
149149

150150
/**
151-
* @deprecated Use getPrimaryAction() instead. Gets the primary {@link Action} associated with
152-
* this message
151+
* @deprecated This method is deprecated. Use {@link #getPrimaryAction()} or {@link
152+
* #getSecondaryAction()} instead.
153153
*/
154154
@Nullable
155155
@Deprecated
@@ -173,8 +173,8 @@ public Text getBody() {
173173
}
174174

175175
/**
176-
* @deprecated Use getPortraitImageData() instead. Gets the {@link ImageData} associated with this
177-
* message
176+
* @deprecated This method is deprecated. Use {@link #getPortraitImageData()} or {@link
177+
* #getLandscapeImageData()} instead.
178178
*/
179179
@Nullable
180180
@Deprecated

firebase-inappmessaging/src/main/java/com/google/firebase/inappmessaging/model/ImageData.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,13 @@ public ImageData(@NonNull String imageUrl, @Nullable Bitmap bitmapData) {
6565
this.bitmapData = bitmapData;
6666
}
6767

68+
/** Gets the URL associated with this image */
6869
@NonNull
6970
public String getImageUrl() {
7071
return imageUrl;
7172
}
7273

74+
/** Gets the bitmap associated with this image */
7375
@Nullable
7476
public Bitmap getBitmapData() {
7577
return bitmapData;

firebase-inappmessaging/src/main/java/com/google/firebase/inappmessaging/model/InAppMessage.java

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,35 +70,55 @@ public InAppMessage(
7070
this.data = data;
7171
}
7272

73-
/** @deprecated Use the message specific methods instead. */
73+
/**
74+
* @deprecated This method is deprecated. Use the message specific methods (see {@link
75+
* CardMessage}, {@link ModalMessage}, {@link BannerMessage}, {@link ImageOnlyMessage})
76+
* instead.
77+
*/
7478
@Nullable
7579
@Deprecated
7680
public Text getTitle() {
7781
return title;
7882
}
7983

80-
/** @deprecated Use the message specific methods (see {@link CardMessage}) instead. */
84+
/**
85+
* @deprecated This method is deprecated. Use the message specific methods (see {@link
86+
* CardMessage}, {@link ModalMessage}, {@link BannerMessage}, {@link ImageOnlyMessage})
87+
* instead.
88+
*/
8189
@Nullable
8290
@Deprecated
8391
public Text getBody() {
8492
return body;
8593
}
8694

87-
/** @deprecated Use the message specific methods (see {@link CardMessage}) instead. */
95+
/**
96+
* @deprecated This method is deprecated. Use the message specific methods (see {@link
97+
* CardMessage}, {@link ModalMessage}, {@link BannerMessage}, {@link ImageOnlyMessage})
98+
* instead.
99+
*/
88100
@Nullable
89101
@Deprecated
90102
public String getImageUrl() {
91103
return imageUrl;
92104
}
93105

94-
/** @deprecated Use the message specific methods (see {@link CardMessage}) instead. */
106+
/**
107+
* @deprecated This method is deprecated. Use the message specific methods (see {@link
108+
* CardMessage}, {@link ModalMessage}, {@link BannerMessage}, {@link ImageOnlyMessage})
109+
* instead.
110+
*/
95111
@Nullable
96112
@Deprecated
97113
public ImageData getImageData() {
98114
return imageData;
99115
}
100116

101-
/** @deprecated Use the message specific methods (see {@link CardMessage}) */
117+
/**
118+
* @deprecated This method is deprecated. Use the message specific methods (see {@link
119+
* CardMessage}, {@link ModalMessage}, {@link BannerMessage}, {@link ImageOnlyMessage})
120+
* instead.
121+
*/
102122
@Nullable
103123
@Deprecated
104124
public Button getActionButton() {
@@ -108,33 +128,43 @@ public Button getActionButton() {
108128
return actionButton;
109129
}
110130

111-
/** @deprecated Use the message specific methods (see {@link CardMessage}) instead. */
131+
/**
132+
* @deprecated This method is deprecated. Use the message specific methods (see {@link
133+
* CardMessage}, {@link ModalMessage}, {@link BannerMessage}, {@link ImageOnlyMessage})
134+
* instead.
135+
*/
112136
@Deprecated
113137
@Nullable
114138
public abstract Action getAction();
115139

116-
/** @deprecated Use the message specific methods (see {@link CardMessage}) instead. */
140+
/**
141+
* @deprecated This method is deprecated. Use the message specific methods (see {@link
142+
* CardMessage}, {@link ModalMessage}, {@link BannerMessage}, {@link ImageOnlyMessage})
143+
* instead.
144+
*/
117145
@Nullable
118146
@Deprecated
119147
public String getBackgroundHexColor() {
120148
return backgroundHexColor;
121149
}
122150

123-
/** @deprecated Use getCampaignMetadata().getCampaignId() instead. */
151+
/** @deprecated This method is deprecated. Use getCampaignMetadata().getCampaignId() instead. */
124152
@Nullable
125153
@Deprecated
126154
public String getCampaignId() {
127155
return campaignMetadata.getCampaignId();
128156
}
129157

130-
/** @deprecated Use getCampaignMetadata().getCampaignName() instead. */
158+
/** @deprecated This method is deprecated. Use getCampaignMetadata().getCampaignName() instead. */
131159
@Nullable
132160
@Deprecated
133161
public String getCampaignName() {
134162
return campaignMetadata.getCampaignName();
135163
}
136164

137-
/** @deprecated Use getCampaignMetadata().getIsTestMessage() instead. */
165+
/**
166+
* @deprecated This method is deprecated. Use getCampaignMetadata().getIsTestMessage() instead.
167+
*/
138168
@Nullable
139169
@Deprecated
140170
public Boolean getIsTestMessage() {
@@ -146,12 +176,17 @@ public Boolean getIsTestMessage() {
146176
public MessageType getMessageType() {
147177
return messageType;
148178
}
179+
149180
/** Gets the {@link CampaignMetadata} of the message */
150181
@Nullable
151182
public CampaignMetadata getCampaignMetadata() {
152183
return campaignMetadata;
153184
}
154185

186+
/**
187+
* Gets the extra data map of the message. This is defined in the Firebase Console for each
188+
* campaign.
189+
*/
155190
@Nullable
156191
public Map<String, String> getData() {
157192
return data;

firebase-inappmessaging/src/main/java/com/google/firebase/inappmessaging/model/TriggeredInAppMessage.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public TriggeredInAppMessage(InAppMessage inAppMessage, String triggeringEvent)
2525
}
2626

2727
public InAppMessage getInAppMessage() {
28-
2928
return inAppMessage;
3029
}
3130

0 commit comments

Comments
 (0)