org.dvb.tvanytime.resolution
Interface ResolutionListener


public interface ResolutionListener

Interface implemented by classes wishing to use a resolution response. The function is called when the resolution is completed or all attempts at resolving the CRID have been exhausted.


Field Summary
static int ACCESS_ERROR
          Value which indicates that resolution has failed due to an error condition preventing access to the specified resolution sources.
static int UNKNOWN_CRID_AUTHORITY
          Value which indicates that the CRID authority of the CRID is not supported by the specified resolution sources.
 
Method Summary
 void resolutionCallback(ResolutionResponse rr)
          This method is called to indicate that a valid resolution response has been obtained.
 void resolutionFailed(CRID crid, int reason)
          This method is called to indicate that a resolution request has failed.
 

Field Detail

UNKNOWN_CRID_AUTHORITY

static final int UNKNOWN_CRID_AUTHORITY
Value which indicates that the CRID authority of the CRID is not supported by the specified resolution sources.

See Also:
Constant Field Values

ACCESS_ERROR

static final int ACCESS_ERROR
Value which indicates that resolution has failed due to an error condition preventing access to the specified resolution sources.

See Also:
Constant Field Values
Method Detail

resolutionCallback

void resolutionCallback(ResolutionResponse rr)
This method is called to indicate that a valid resolution response has been obtained. Implementations should note that this callback blocks the response thread so callbacks corresponding to a single request are guaranteed synchronous. This is not the case if more than one request is made before the last callback has returned from the first request.

Parameters:
rr - The resulting ResolutionResponse object

resolutionFailed

void resolutionFailed(CRID crid,
                      int reason)
This method is called to indicate that a resolution request has failed. Implementations should note that this callback blocks the response thread so callbacks corresponding to a single request are guaranteed synchronous. This is not the case if more than one request is made before the last callback has returned from the first request.

Parameters:
crid - the CRID that was to be resolved
reason - a value that is set to UNKNOWN_CRID_AUTHORITY or ACCESS_ERROR