|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The listener interface for all media events.
| Field Summary | ||
static int |
MEDIA_COMPLETE
Sent when all scheduled media actions have been completed. |
|
static int |
MEDIA_IO
Sent by the MediaLoader to notify about download progress/status. |
|
static int |
MEDIA_REALIZED
Sent by a MediaManager to return downloaded media. |
|
static int |
MEDIA_REQUESTED
Sent when new content is requested. |
|
static int |
UNUSED
Value for eventParam when it's not required. |
|
| Method Summary | ||
void |
mediaEvent(Object sender,
int event,
int eventParam,
Object data)
The listen method. |
|
| Field Detail |
public static final int MEDIA_COMPLETE
If the media has focusable items then the user can trigger another action. If the media does not have any focusable items then it turns into a static media.
public static final int MEDIA_REQUESTED
In this case data will point to a string containing a url to requested content.
public static final int MEDIA_IO
In this case data will point to a LoadingStatus.
public static final int MEDIA_REALIZED
When the downloader has completed its download, it fires this event and returns the
MediaModel in the data field.
| Method Detail |
public void mediaEvent(Object sender, int event, int eventParam, Object data)
sender - The object that initiated the event, usually MediaPlayer.event - An integer representing the event code.eventParam - An additional parameter that is associated with the event.data - Additional data that is associated with the event.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.