AppEngagePublishTaskWorker


abstract class AppEngagePublishTaskWorker : ListenableWorker


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

Summary

Public constructors

AppEngagePublishTaskWorker(
    context: Context,
    workerParams: WorkerParameters
)

Public functions

abstract Task<Void!>!

Override this method to implement the content publish task.

abstract ListenableWorker.Result!

Override this method to handle exceptionAppEngageException while publishing.

ListenableFuture<ListenableWorker.Result!>

Public constructors

AppEngagePublishTaskWorker

AppEngagePublishTaskWorker(
    context: Context,
    workerParams: WorkerParameters
)

Public functions

doPublish

abstract fun doPublish(): Task<Void!>!

Override this method to implement the content publish task.

handleException

abstract fun handleException(exception: AppEngageException!): ListenableWorker.Result!

Override this method to handle exceptionAppEngageException while publishing.