AppEngagePublishTaskWorker


public abstract class AppEngagePublishTaskWorker extends ListenableWorker


A wrapper around ListenableWorker to set up a content publish task in the background.

Summary

Public constructors

AppEngagePublishTaskWorker(
    @NonNull Context context,
    @NonNull WorkerParameters workerParams
)

Public methods

abstract Task<Void>

Override this method to implement the content publish task.

abstract ListenableWorker.Result

Override this method to handle exceptionAppEngageException while publishing.

@NonNull ListenableFuture<ListenableWorker.Result>

Public constructors

AppEngagePublishTaskWorker

public AppEngagePublishTaskWorker(
    @NonNull Context context,
    @NonNull WorkerParameters workerParams
)

Public methods

doPublish

public abstract Task<VoiddoPublish()

Override this method to implement the content publish task.

handleException

public abstract ListenableWorker.Result handleException(AppEngageException exception)

Override this method to handle exceptionAppEngageException while publishing.