public class SelectionFailedEvent extends ServiceContextEvent
SelectionFailedEvent is generated when a service
selection operation fails. SelectionFailedEvent is
not generated when a service selection fails with an exception.
Presentation failures enforced via a conditional access system may
be reported by this event (with the reason code CA_REFUSAL) or by
AlternativeContentEvent. Which of these is used
depends on the precise nature of the conditional access
system. Applications must allow for both modes of failure.
AlternativeContentEvent,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
CA_REFUSAL
Reason code : Selection failed due to the CA system refusing to
permit it.
|
static int |
CONTENT_NOT_FOUND
Reason code : Selection failed because the requested content
could not be found in the network.
|
static int |
INSUFFICIENT_RESOURCES
Reason code : Selection failed due to a lack of resources required to
present this service.
|
static int |
INTERRUPTED
Reason code : Selection has been interrupted by another selection
request.
|
static int |
MISSING_HANDLER
Reason code : Selection failed due to absence of a
ServiceContentHandler required to present the requested
service. |
static int |
TUNING_FAILURE
Reason code : Selection failed due to problems with tuning.
|
source| Constructor and Description |
|---|
SelectionFailedEvent(ServiceContext source,
int reason)
Constructs the event with a reason code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getReason()
Reports the reason why the selection failed.
|
getServiceContextgetSource, toStringpublic static final int INTERRUPTED
public static final int CA_REFUSAL
public static final int CONTENT_NOT_FOUND
public static final int MISSING_HANDLER
ServiceContentHandler required to present the requested
service.ServiceContentHandler,
Constant Field Valuespublic static final int TUNING_FAILURE
public static final int INSUFFICIENT_RESOURCES
public SelectionFailedEvent(ServiceContext source, int reason)
source - The ServiceContext that generated the event.reason - The reason why the selection failed.Copyright © 2012 code4tv.com. All Rights Reserved.