ForegroundUpdater

public interface ForegroundUpdater

androidx.work.ForegroundUpdater


Manages updating Notifications when a ListenableWorker transitions to running in the context of a foreground Service.

Summary

Public methods

abstract ListenableFuture<Void> setForegroundAsync(Context context, UUID id, ForegroundInfo foregroundInfo)

Public methods

setForegroundAsync

public abstract ListenableFuture<Void> setForegroundAsync (Context context, 
                UUID id, 
                ForegroundInfo foregroundInfo)

Parameters
context Context: The application Context.

id UUID: The UUID identifying the ListenableWorker

foregroundInfo ForegroundInfo: The ForegroundInfo

Returns
ListenableFuture<Void>