TvInteractiveAppView.TvInteractiveAppCallback
public
static
abstract
class
TvInteractiveAppView.TvInteractiveAppCallback
extends Object
java.lang.Object
|
↳ |
android.media.tv.interactive.TvInteractiveAppView.TvInteractiveAppCallback
|
Callback used to receive various status updates on the TvInteractiveAppView
.
Summary
Public methods |
void
|
onBiInteractiveAppCreated(String iAppServiceId, Uri biIAppUri, String biIAppId)
This is called when broadcast-independent (BI) interactive app is created.
|
void
|
onPlaybackCommandRequest(String iAppServiceId, String cmdType, Bundle parameters)
This is called when a playback command is requested to be processed by the related TV
input.
|
void
|
onRequestAvailableSpeeds(String iAppServiceId)
This is called when TvInteractiveAppService.Session#requestAvailableSpeeds() is
called.
|
void
|
onRequestCurrentChannelLcn(String iAppServiceId)
This is called when TvInteractiveAppService.Session#requestCurrentChannelLcn() is
called.
|
void
|
onRequestCurrentChannelUri(String iAppServiceId)
This is called when TvInteractiveAppService.Session#requestCurrentChannelUri() is
called.
|
void
|
onRequestCurrentTvInputId(String iAppServiceId)
This is called when TvInteractiveAppService.Session#requestCurrentTvInputId() is
called.
|
void
|
onRequestCurrentVideoBounds(String iAppServiceId)
This is called when TvInteractiveAppService.Session#requestCurrentVideoBounds()
is called.
|
void
|
onRequestScheduleRecording(String iAppServiceId, String requestId, String inputId, Uri channelUri, long startTime, long duration, int repeatDays, Bundle params)
This is called when
TvInteractiveAppService.Session#requestScheduleRecording(String, String, Uri, long, long, int, Bundle)
is called.
|
void
|
onRequestScheduleRecording(String iAppServiceId, String requestId, String inputId, Uri channelUri, Uri programUri, Bundle params)
This is called when
TvInteractiveAppService.Session#requestScheduleRecording(String, String, Uri, Uri, Bundle)
is called.
|
void
|
onRequestSigning(String iAppServiceId, String signingId, String algorithm, String alias, byte[] data)
This is called when
TvInteractiveAppService.Session#requestSigning(String, String, String, byte[]) is
called.
|
void
|
onRequestStartRecording(String iAppServiceId, String requestId, Uri programUri)
This is called when
TvInteractiveAppService.Session#requestStartRecording(String, Uri) is called.
|
void
|
onRequestStopRecording(String iAppServiceId, String recordingId)
This is called when TvInteractiveAppService.Session#requestStopRecording(String)
is called.
|
void
|
onRequestStreamVolume(String iAppServiceId)
This is called when TvInteractiveAppService.Session#requestStreamVolume() is
called.
|
void
|
onRequestTimeShiftMode(String iAppServiceId)
This is called when TvInteractiveAppService.Session#requestTimeShiftMode() is
called.
|
void
|
onRequestTrackInfoList(String iAppServiceId)
This is called when TvInteractiveAppService.Session#requestTrackInfoList() is
called.
|
void
|
onRequestTvRecordingInfo(String iAppServiceId, String recordingId)
This is called when
TvInteractiveAppService.Session#requestTvRecordingInfo(String) is
called.
|
void
|
onRequestTvRecordingInfoList(String iAppServiceId, int type)
This is called when
TvInteractiveAppService.Session#requestTvRecordingInfoList(int) is
called.
|
void
|
onSetTvRecordingInfo(String iAppServiceId, String recordingId, TvRecordingInfo recordingInfo)
This is called when TvInteractiveAppService.Session#setTvRecordingInfo(String,
TvRecordingInfo) is called.
|
void
|
onSetVideoBounds(String iAppServiceId, Rect rect)
This is called when TvInteractiveAppService.Session#setVideoBounds(Rect) is
called.
|
void
|
onStateChanged(String iAppServiceId, int state, int err)
This is called when the state of corresponding interactive app is changed.
|
void
|
onTeletextAppStateChanged(String iAppServiceId, int state)
This is called when the digital teletext app state is changed.
|
void
|
onTimeShiftCommandRequest(String iAppServiceId, String cmdType, Bundle parameters)
This is called when a time shift command is requested to be processed by the related TV
input.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Public constructors
TvInteractiveAppCallback
public TvInteractiveAppCallback ()
Public methods
onBiInteractiveAppCreated
public void onBiInteractiveAppCreated (String iAppServiceId,
Uri biIAppUri,
String biIAppId)
This is called when broadcast-independent (BI) interactive app is created.
Parameters |
iAppServiceId |
String : The ID of the TV interactive app service bound to this view.
This value cannot be null . |
biIAppUri |
Uri : URI associated this BI interactive app. This is the same URI in
TvInteractiveAppView.createBiInteractiveApp(android.net.Uri, android.os.Bundle)
This value cannot be null . |
biIAppId |
String : BI interactive app ID, which can be used to destroy the BI interactive
app. null if it's not created successfully. |
onPlaybackCommandRequest
public void onPlaybackCommandRequest (String iAppServiceId,
String cmdType,
Bundle parameters)
This is called when a playback command is requested to be processed by the related TV
input.
onRequestScheduleRecording
public void onRequestScheduleRecording (String iAppServiceId,
String requestId,
String inputId,
Uri channelUri,
long startTime,
long duration,
int repeatDays,
Bundle params)
This is called when
TvInteractiveAppService.Session#requestScheduleRecording(String, String, Uri, long, long, int, Bundle)
is called.
Parameters |
iAppServiceId |
String : The ID of the TV interactive app service bound to this view.
This value cannot be null . |
requestId |
String : The ID of this request which is used to match the corresponding
response. The request ID in
TvInteractiveAppView.notifyRecordingScheduled(java.lang.String, java.lang.String) for this request is
the same as the ID sent here. This should be defined by the
TIAS and can be any string. Should this API be called with the
same requestId twice, both requests should be handled regardless
by the TV application.
This value cannot be null . |
inputId |
String : The ID of the TV input for the given channel.
This value cannot be null . |
channelUri |
Uri : The URI of a channel to be recorded.
This value cannot be null . |
startTime |
long : The start time of the recording in milliseconds since epoch. |
duration |
long : The duration of the recording in milliseconds. |
repeatDays |
int : The repeated days. 0 if not repeated. |
params |
Bundle : Domain-specific data for this tune request. Keys must be a scoped
name, i.e. prefixed with a package name you own, so that different developers
will not create conflicting keys.
This value cannot be null . |
onRequestScheduleRecording
public void onRequestScheduleRecording (String iAppServiceId,
String requestId,
String inputId,
Uri channelUri,
Uri programUri,
Bundle params)
This is called when
TvInteractiveAppService.Session#requestScheduleRecording(String, String, Uri, Uri, Bundle)
is called.
Parameters |
iAppServiceId |
String : The ID of the TV interactive app service bound to this view.
This value cannot be null . |
requestId |
String : The ID of this request which is used to match the corresponding
response. The request ID in
TvInteractiveAppView.notifyRecordingScheduled(java.lang.String, java.lang.String) for this request is
the same as the ID sent here. This should be defined by the
TIAS and can be any string. Should this API be called with the
same requestId twice, both requests should be handled regardless
by the TV application.
This value cannot be null . |
inputId |
String : The ID of the TV input for the given channel.
This value cannot be null . |
channelUri |
Uri : The URI of a channel to be recorded.
This value cannot be null . |
programUri |
Uri : The URI of the TV program to be recorded.
This value cannot be null . |
params |
Bundle : Domain-specific data for this tune request. Keys must be a scoped
name, i.e. prefixed with a package name you own, so that different developers
will not create conflicting keys.
This value cannot be null . |
onRequestSigning
public void onRequestSigning (String iAppServiceId,
String signingId,
String algorithm,
String alias,
byte[] data)
This is called when
TvInteractiveAppService.Session#requestSigning(String, String, String, byte[])
is
called.
Parameters |
iAppServiceId |
String : The ID of the TV interactive app service bound to this view.
This value cannot be null . |
signingId |
String : the ID to identify the request.
This value cannot be null . |
algorithm |
String : the standard name of the signature algorithm requested, such as
MD5withRSA, SHA256withDSA, etc.
This value cannot be null . |
alias |
String : the alias of the corresponding KeyStore .
This value cannot be null . |
data |
byte : the original bytes to be signed.
This value cannot be null . |
onRequestStartRecording
public void onRequestStartRecording (String iAppServiceId,
String requestId,
Uri programUri)
This is called when
TvInteractiveAppService.Session#requestStartRecording(String, Uri)
is called.
Parameters |
iAppServiceId |
String : The ID of the TV interactive app service bound to this view.
This value cannot be null . |
requestId |
String : The ID of this request which is used to match the corresponding
response. The request ID in
TvInteractiveAppView.notifyRecordingStarted(java.lang.String, java.lang.String) for this request is the
same as the ID sent here. This should be defined by the
TIAS and can be any string. Should this API be called with the
same requestId twice, both requests should be handled regardless
by the TV application.
This value cannot be null . |
programUri |
Uri : The URI of the program to record
This value may be null . |
onSetVideoBounds
public void onSetVideoBounds (String iAppServiceId,
Rect rect)
This is called when TvInteractiveAppService.Session#setVideoBounds(Rect)
is
called.
Parameters |
iAppServiceId |
String : The ID of the TV interactive app service bound to this view.
This value cannot be null . |
rect |
Rect : This value cannot be null . |
onStateChanged
public void onStateChanged (String iAppServiceId,
int state,
int err)
This is called when the state of corresponding interactive app is changed.
onTeletextAppStateChanged
public void onTeletextAppStateChanged (String iAppServiceId,
int state)
This is called when the digital teletext app state is changed.
onTimeShiftCommandRequest
public void onTimeShiftCommandRequest (String iAppServiceId,
String cmdType,
Bundle parameters)
This is called when a time shift command is requested to be processed by the related TV
input.