net.rim.device.api.content
Class BlackBerryContentHandler

java.lang.Object
  |
  +--net.rim.device.api.content.BlackBerryContentHandler

public class BlackBerryContentHandler
extends Object

Provides Content Handler API (JSR 211) IDs which can be used for invoking RIM content handlers.

As defined by JSR 211, a content handler ID is a unique identifier for a content handler. These IDs can be used with the Invocation class to invoke a specific content handler, or with the Registry class to retrieve a specific ContentHandler class.

For more information and other uses for content handler IDs, please refer to the JSR 211 specification.

Since:
JDE 4.3.0
See Also:
JSR 211

Field Summary
static String ID_MEDIA_CONTENT_HANDLER
          ID for the Media content handler.
static String MEDIA_ARGUMENT_VIEW_MEDIA
          Argument for Invocation objects intended for use with the Media content handler.
static String MEDIA_ARGUMENT_VIEW_MUSIC
          Argument for Invocation objects intended for use with the Media content handler.
static String MEDIA_ARGUMENT_VIEW_PICTURES
          Argument for Invocation objects intended for use with the Media content handler.
static String MEDIA_ARGUMENT_VIEW_PLAYLISTS
          Argument for Invocation objects intended for use with the Media content handler.
static String MEDIA_ARGUMENT_VIEW_RINGTONES
          Argument for Invocation objects intended for use with the Media content handler.
static String MEDIA_ARGUMENT_VIEW_VIDEOS
          Argument for Invocation objects intended for use with the Media content handler.
static String MEDIA_ARGUMENT_VIEW_VOICENOTES
          Argument for Invocation objects intended for use with the Media content handler.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_MEDIA_CONTENT_HANDLER

public static final String ID_MEDIA_CONTENT_HANDLER

ID for the Media content handler.

The Media content handler can be invoked to open media files which are supported by the handheld.

If you create an Invocation object and specify this ID and no other parameters, calling Registry.invoke() with that Invocation will start the Media application.

If this ID and if one of the MEDIA_ARGUMENT_VIEW_* constants is used in the arguments array of the Invocation, the Media application will be opened in the view specified.

If you specify a URL for that Invocation then the Media content handler will attempt to open the file specified by the URL.

Since:
JDE 4.3.0

MEDIA_ARGUMENT_VIEW_MEDIA

public static final String MEDIA_ARGUMENT_VIEW_MEDIA
Argument for Invocation objects intended for use with the Media content handler.

Specifying this argument as one of the Strings in the arguments array passed to Invocation.setArgs() will result in the Media application being opened to view the default media hub when the Media content handler is invoked.

Since:
JDE 4.7.0

MEDIA_ARGUMENT_VIEW_MUSIC

public static final String MEDIA_ARGUMENT_VIEW_MUSIC
Argument for Invocation objects intended for use with the Media content handler.

Specifying this argument as one of the Strings in the arguments array passed to Invocation.setArgs() will result in the Media application being opened to view the music library when the Media content handler is invoked.

Since:
JDE 4.7.0

MEDIA_ARGUMENT_VIEW_PICTURES

public static final String MEDIA_ARGUMENT_VIEW_PICTURES
Argument for Invocation objects intended for use with the Media content handler.

Specifying this argument as one of the Strings in the arguments array passed to Invocation.setArgs() will result in the Media application being opened to view the photo library when the Media content handler is invoked.

Since:
JDE 4.7.0

MEDIA_ARGUMENT_VIEW_PLAYLISTS

public static final String MEDIA_ARGUMENT_VIEW_PLAYLISTS
Argument for Invocation objects intended for use with the Media content handler.

Specifying this argument as one of the Strings in the arguments array passed to Invocation.setArgs() will result in the Media application being opened to view all playlists when the Media content handler is invoked.

Since:
JDE 4.7.0

MEDIA_ARGUMENT_VIEW_RINGTONES

public static final String MEDIA_ARGUMENT_VIEW_RINGTONES
Argument for Invocation objects intended for use with the Media content handler.

Specifying this argument as one of the Strings in the arguments array passed to Invocation.setArgs() will result in the Media application being opened to view the list of ringtones when the Media content handler is invoked.

Since:
JDE 4.7.0

MEDIA_ARGUMENT_VIEW_VIDEOS

public static final String MEDIA_ARGUMENT_VIEW_VIDEOS
Argument for Invocation objects intended for use with the Media content handler.

Specifying this argument as one of the Strings in the arguments array passed to Invocation.setArgs() will result in the Media application being opened to view the video library when the Media content handler is invoked.

Since:
JDE 4.7.0

MEDIA_ARGUMENT_VIEW_VOICENOTES

public static final String MEDIA_ARGUMENT_VIEW_VOICENOTES
Argument for Invocation objects intended for use with the Media content handler.

Specifying this argument as one of the Strings in the arguments array passed to Invocation.setArgs() will result in the Media application being opened to view voice notes when the Media content handler is invoked.

Since:
JDE 4.7.0



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.