File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed
firebase-appdistribution/src/main/java/com/google/firebase/appdistribution Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 19
19
import com .google .auto .value .AutoValue ;
20
20
21
21
/**
22
- * The release information returned by {@link checkForNewRelease} when a new version is available
23
- * for the signed in tester.
22
+ * The release information returned by {@link FirebaseAppDistribution# checkForNewRelease} when a new
23
+ * version is available for the signed in tester.
24
24
*/
25
25
@ AutoValue
26
26
public abstract class AppDistributionRelease {
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ public Task<Void> signInTester() {
258
258
259
259
/**
260
260
* Returns an {@link AppDistributionRelease} if an update is available for the current signed in
261
- * tester or {@code null} otherwise.
261
+ * tester, or {@code null} otherwise.
262
262
*/
263
263
@ NonNull
264
264
public synchronized Task <AppDistributionRelease > checkForNewRelease () {
@@ -291,9 +291,10 @@ public synchronized Task<AppDistributionRelease> checkForNewRelease() {
291
291
}
292
292
293
293
/**
294
- * Updates app to the {@link AppDistributionRelease} returned by {@link #checkForNewRelease}. If
295
- * the newest release is an APK, downloads the binary and starts an installation. If the newest
296
- * release is an AAB, directs the tester to the Play app to complete the download and
294
+ * Updates app to the {@link AppDistributionRelease} returned by {@link #checkForNewRelease}.
295
+ *
296
+ * <p>If the newest release is an APK, downloads the binary and starts an installation. If the
297
+ * newest release is an AAB, directs the tester to the Play app to complete the download and
297
298
* installation.
298
299
*
299
300
* <p>Cancels task with {@link Status#UPDATE_NOT_AVAILABLE} if no new release is cached from
Original file line number Diff line number Diff line change @@ -30,15 +30,17 @@ static UpdateProgress.Builder builder() {
30
30
/**
31
31
* The number of bytes downloaded so far for an APK.
32
32
*
33
- * @returns -1 if called when updating to an AAB or if no new release is available.
33
+ * @returns the number of bytes downloaded, or -1 if called when updating to an AAB or if no new
34
+ * release is available.
34
35
*/
35
36
@ NonNull
36
37
public abstract long getApkBytesDownloaded ();
37
38
38
39
/**
39
40
* The file size of the APK file to download in bytes.
40
41
*
41
- * @returns -1 if called when updating to an AAB or if no new release is available.
42
+ * @returns the file size in bytes, or -1 if called when updating to an AAB or if no new release
43
+ * is available.
42
44
*/
43
45
@ NonNull
44
46
public abstract long getApkFileTotalBytes ();
Original file line number Diff line number Diff line change 26
26
*/
27
27
public abstract class UpdateTask extends Task <Void > {
28
28
/**
29
- * Adds a listener that is called periodically while the UpdateTask executes.
29
+ * Adds a listener that is called periodically while this {@link UpdateTask} executes.
30
30
*
31
- * @return this Task
31
+ * @return this {@link UpdateTask}
32
32
*/
33
33
@ NonNull
34
34
public abstract UpdateTask addOnProgressListener (@ NonNull OnProgressListener listener );
35
35
36
36
/**
37
- * Adds a listener that is called periodically while the UpdateTask executes.
37
+ * Adds a listener that is called periodically while {@link UpdateTask} executes.
38
38
*
39
39
* @param executor the executor to use to call the listener
40
- * @return this Task
40
+ * @return this {@link UpdateTask}
41
41
*/
42
42
@ NonNull
43
43
public abstract UpdateTask addOnProgressListener (
You can’t perform that action at this time.
0 commit comments