public interface

AgentAvailabilityClient

com.salesforce.android.chat.core.AgentAvailabilityClient

Summary

Public Methods
abstract Async<AvailabilityState> check()
Checks the current availability status.
abstract Async<AvailabilityState> verifyLiveAgentPod()
Do a fast check to verify the getLiveAgentPod().

Public Methods

public abstract Async<AvailabilityState> check ()

Checks the current availability status. The AvailabilityState which is returned as part of the onResult(Async.ResultHandler) callback will contain both the current availability AvailabilityState.Status as well as the proper LiveAgentPod host name if that has changed.

Returns
  • An Async which will trigger any attached handlers when the request completes.

public abstract Async<AvailabilityState> verifyLiveAgentPod ()

Do a fast check to verify the getLiveAgentPod(). Please note that he AvailabilityState.Status may be 'Unknown'. You should use check() if the current Status is important to you.

Use this if you want to verify or update the currently configured LiveAgentPod. And you aren't currently concerned about the availability AvailabilityState.Status.

Returns
  • An Async which will trigger any attached handlers when the request completes.