Skip to content

Commit 3802f5b

Browse files
authored
Updating java doc (#3258)
Updating java doc. (b/171795693)
1 parent 618b08c commit 3802f5b

File tree

1 file changed

+21
-29
lines changed

1 file changed

+21
-29
lines changed

firebase-inappmessaging/src/main/java/com/google/firebase/inappmessaging/FirebaseInAppMessaging.java

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class FirebaseInAppMessaging {
9090
}
9191

9292
/**
93-
* Get FirebaseInAppMessaging instance using the firebase app returned by {@link
93+
* Gets FirebaseInAppMessaging instance using the firebase app returned by {@link
9494
* FirebaseApp#getInstance()}
9595
*
9696
* @param
@@ -102,7 +102,7 @@ public static FirebaseInAppMessaging getInstance() {
102102
}
103103

104104
/**
105-
* Determine whether automatic data collection is enabled or not
105+
* Determines whether automatic data collection is enabled or not.
106106
*
107107
* @return true if auto initialization is required
108108
*/
@@ -111,7 +111,7 @@ public boolean isAutomaticDataCollectionEnabled() {
111111
}
112112

113113
/**
114-
* Enable, disable or clear automatic data collection for Firebase In-App Messaging.
114+
* Enables, disables, or clears automatic data collection for Firebase In-App Messaging.
115115
*
116116
* <p>When enabled, generates a registration token on app startup if there is no valid one and
117117
* generates a new token when it is deleted (which prevents {@link
@@ -146,7 +146,7 @@ public void setAutomaticDataCollectionEnabled(@Nullable Boolean isAutomaticColle
146146
}
147147

148148
/**
149-
* Enable or disable automatic data collection for Firebase In-App Messaging.
149+
* Enables, disables, or clears automatic data collection for Firebase In-App Messaging.
150150
*
151151
* <p>When enabled, generates a registration token on app startup if there is no valid one and
152152
* generates a new token when it is deleted (which prevents {@link
@@ -172,7 +172,7 @@ public void setAutomaticDataCollectionEnabled(boolean isAutomaticCollectionEnabl
172172
}
173173

174174
/**
175-
* Enable or disable suppression of Firebase In App Messaging messages
175+
* Enables or disables suppression of Firebase In App Messaging messages.
176176
*
177177
* <p>When enabled, no in app messages will be rendered until either you either disable
178178
* suppression, or the app restarts, as this state is not preserved over app restarts.
@@ -186,7 +186,7 @@ public void setMessagesSuppressed(@NonNull Boolean areMessagesSuppressed) {
186186
}
187187

188188
/**
189-
* Determine whether messages are suppressed or not. This is honored by the UI sdk, which handles
189+
* Determines whether messages are suppressed or not. This is honored by the UI sdk, which handles
190190
* rendering the in app message.
191191
*
192192
* @return true if messages should be suppressed
@@ -196,8 +196,8 @@ public boolean areMessagesSuppressed() {
196196
}
197197

198198
/**
199-
* Called to set a new message display component for FIAM SDK. This is the method used by both the
200-
* default FIAM display SDK or any app wanting to customize the message display.
199+
* Sets message display component for FIAM SDK. This is the method used by both the default FIAM
200+
* display SDK or any app wanting to customize the message display.
201201
*/
202202
public void setMessageDisplayComponent(@NonNull FirebaseInAppMessagingDisplay messageDisplay) {
203203
Logging.logi("Setting display event component");
@@ -214,12 +214,8 @@ public void clearDisplayListener() {
214214
this.fiamDisplay = null;
215215
}
216216

217-
/*
218-
* Adds/Removes the event listeners. These listeners are triggered after FIAM's internal metrics reporting, but regardless of success/failure of the FIAM-internal callbacks.
219-
*/
220-
221217
/**
222-
* Registers an impression listener with FIAM, which will be notified on every FIAM impression
218+
* Registers an impression listener with FIAM, which will be notified on every FIAM impression.
223219
*
224220
* @param impressionListener
225221
*/
@@ -229,7 +225,7 @@ public void addImpressionListener(
229225
}
230226

231227
/**
232-
* Registers a click listener with FIAM, which will be notified on every FIAM click
228+
* Registers a click listener with FIAM, which will be notified on every FIAM click.
233229
*
234230
* @param clickListener
235231
*/
@@ -238,7 +234,7 @@ public void addClickListener(@NonNull FirebaseInAppMessagingClickListener clickL
238234
}
239235

240236
/**
241-
* Registers a dismiss listener with FIAM, which will be notified on every FIAM dismiss
237+
* Registers a dismiss listener with FIAM, which will be notified on every FIAM dismiss.
242238
*
243239
* @param dismissListener
244240
*/
@@ -248,7 +244,7 @@ public void addDismissListener(@NonNull FirebaseInAppMessagingDismissListener di
248244

249245
/**
250246
* Registers a display error listener with FIAM, which will be notified on every FIAM display
251-
* error
247+
* error.
252248
*
253249
* @param displayErrorListener
254250
*/
@@ -257,11 +253,9 @@ public void addDisplayErrorListener(
257253
developerListenerManager.addDisplayErrorListener(displayErrorListener);
258254
}
259255

260-
// Executed with provided executor
261-
262256
/**
263257
* Registers an impression listener with FIAM, which will be notified on every FIAM impression,
264-
* and triggered on the provided executor
258+
* and triggered on the provided executor.
265259
*
266260
* @param impressionListener
267261
* @param executor
@@ -274,7 +268,7 @@ public void addImpressionListener(
274268

275269
/**
276270
* Registers a click listener with FIAM, which will be notified on every FIAM click, and triggered
277-
* on the provided executor
271+
* on the provided executor.
278272
*
279273
* @param clickListener
280274
* @param executor
@@ -286,7 +280,7 @@ public void addClickListener(
286280

287281
/**
288282
* Registers a dismiss listener with FIAM, which will be notified on every FIAM dismiss, and
289-
* triggered on the provided executor
283+
* triggered on the provided executor.
290284
*
291285
* @param dismissListener
292286
* @param executor
@@ -298,7 +292,7 @@ public void addDismissListener(
298292

299293
/**
300294
* Registers a display error listener with FIAM, which will be notified on every FIAM display
301-
* error, and triggered on the provided executor
295+
* error, and triggered on the provided executor.
302296
*
303297
* @param displayErrorListener
304298
* @param executor
@@ -309,10 +303,8 @@ public void addDisplayErrorListener(
309303
developerListenerManager.addDisplayErrorListener(displayErrorListener, executor);
310304
}
311305

312-
// Removing individual listeners:
313-
314306
/**
315-
* Unregisters an impression listener
307+
* Unregisters an impression listener.
316308
*
317309
* @param impressionListener
318310
*/
@@ -322,7 +314,7 @@ public void removeImpressionListener(
322314
}
323315

324316
/**
325-
* Unregisters a click listener
317+
* Unregisters a click listener.
326318
*
327319
* @param clickListener
328320
*/
@@ -331,7 +323,7 @@ public void removeClickListener(@NonNull FirebaseInAppMessagingClickListener cli
331323
}
332324

333325
/**
334-
* Unregisters a display error listener
326+
* Unregisters a display error listener.
335327
*
336328
* @param displayErrorListener
337329
*/
@@ -350,8 +342,8 @@ public void removeAllListeners() {
350342
}
351343

352344
/**
353-
* Programmatically trigger a contextual trigger. This will display any eligible in-app messages
354-
* that are triggered by this event
345+
* Programmatically triggers a contextual trigger. This will display any eligible in-app messages
346+
* that are triggered by this event.
355347
*
356348
* @param eventName
357349
*/

0 commit comments

Comments
 (0)