MoETask
Represents an SDK Task. Customers attach onSuccess / onFailure / onComplete to receive the result; the return value is discardable.
onSuccess / onFailure / onComplete callbacks always fire on the main thread.
Cancel: cancel clears registered handlers; the underlying SDK operation is NOT aborted.
Author
Gowtham KK
Since
10.0.0
Functions
Link copied to clipboard
Link copied to clipboard
For SDK internal use only — rejects the task with a failure.
For SDK internal use only — rejects the task wrapping throwable as an unknown error.
Link copied to clipboard
Rejects this MoETask mapping a platform JobSubmissionFailure to the corresponding MoERequestFailureReason. Used when a background job/runnable could not be queued by the com.moengage.platform.internal.thread.executor.TaskHandler.