UpdateTask

public abstract classUpdateTask extendsTask


Represents an asynchronous operation to update an app.

This task also receives progress and other state change notifications.

Summary

Public constructors

Public methods

abstract @NonNullUpdateTask

Adds a listener that is called periodically while thisUpdateTask executes.

abstract @NonNullUpdateTask

Adds a listener that is called periodically whileUpdateTask executes.

Inherited methods

Fromcom.google.android.gms.tasks.Task
Task<TResult>
Task<TResult>
abstractTask<TResult>
abstractTask<TResult>
Task<TContinuationResult>
<TContinuationResult>continueWith(
    Continuation<TResult, TContinuationResult> p
)
Task<TContinuationResult>
<TContinuationResult>continueWithTask(
    Continuation<TResult, Task<TContinuationResult>> p
)
abstractException
abstract TResult
abstract boolean
abstract boolean
abstract boolean
Task<TContinuationResult>
<TContinuationResult>onSuccessTask(
    SuccessContinuation<TResult, TContinuationResult> p
)

Public constructors

UpdateTask

public UpdateTask()

Public methods

addOnProgressListener

public abstract @NonNullUpdateTask addOnProgressListener(@NonNullOnProgressListener listener)

Adds a listener that is called periodically while thisUpdateTask executes.

addOnProgressListener

public abstract @NonNullUpdateTask addOnProgressListener(
    @NullableExecutor executor,
    @NonNullOnProgressListener listener
)

Adds a listener that is called periodically whileUpdateTask executes.

Parameters
@NullableExecutor executor

the executor to use to call the listener

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.