Skip to content

//sorisdk/com.iplateia.sorisdk/ISORIListener/onRequestQueued

onRequestQueued

[androidJvm]
open fun onRequestQueued(materialId: String, queueCount: Int)

Called when a request is queued for delayed sending due to network unavailability.

This callback indicates that a failed request has been added to the pending queue and will be automatically retried when network connectivity is restored (if autoRetryOnNetworkRecovery is enabled).

Use this callback to:

  • Update UI to show pending request status
  • Inform users that the request will be processed later
  • Monitor the queue size for potential issues

This method has a default empty implementation, making it optional to override.

Since

4.3.2

Parameters

androidJvm

materialIdThe unique identifier of the material that was queued
queueCountThe total number of pending requests currently in the queue

See also

ISORIListener.onNetworkErrorfor handling network failures
SORIConfig.enableDelayedSending
SORIConfig.maxPendingTimeMillis