UpdateTask

public abstract class UpdateTask extends Task


Represents an asynchronous operation to update an app.

This task also receives progress and other state change notifications.

Summary

Public constructors

Public methods

abstract @NonNull UpdateTask

Adds a listener that is called periodically while this UpdateTask executes.

abstract @NonNull UpdateTask
addOnProgressListener(
    @Nullable Executor executor,
    @NonNull OnProgressListener listener
)

Adds a listener that is called periodically while UpdateTask executes.

Inherited methods

From com.google.android.gms.tasks.Task
Task<TResult>
Task<TResult>
abstract Task<TResult>
abstract Task<TResult>
Task<TContinuationResult>
<TContinuationResult> continueWith(
    Continuation<TResult, TContinuationResult> p
)
Task<TContinuationResult>
<TContinuationResult> continueWithTask(
    Continuation<TResult, Task<TContinuationResult>> p
)
abstract Exception
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 @NonNull UpdateTask addOnProgressListener(@NonNull OnProgressListener listener)

Adds a listener that is called periodically while this UpdateTask executes.

Returns
@NonNull UpdateTask

this UpdateTask

addOnProgressListener

public abstract @NonNull UpdateTask addOnProgressListener(
    @Nullable Executor executor,
    @NonNull OnProgressListener listener
)

Adds a listener that is called periodically while UpdateTask executes.

Parameters
@Nullable Executor executor

the executor to use to call the listener

Returns
@NonNull UpdateTask

this UpdateTask