It seems like the browser you are using has JavaScript disabled. As a result, the site will not function properly. We really want you to enable it so you may experience our site as we intended it. If you have no idea what we are talking about or if you need help, visit http://www.enable-javascript.com×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Oops, it seems like you're using an old browser that we do not fully support. If you're able to, please upgrade your browser here.×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Message

To link against this class, add the following line to your .pro file: LIBS += -lbbpim

The Message class represents information about a message, such as subject, sender and recipient contacts, and status.

This class represents data that's commonly associated with a message. You can manipulate Message objects by using the MessageService class. For example, you can retrieve a specific message in the messages database by calling MessageService::message() and specifying the account ID and message ID of the message you want. Or, you can retrieve a list of messages that fit a set of criteria by calling MessageService::messages().

You can use the Message class to create a new message in your app and populate it with information. You can then send the message by calling MessageService::send().

voidapply (

You can use this function to keep the copy of a message in your app current with any service-side updates. After you retrieve the message from the message service, you should listen for any updates to the message (for example, by using the MessageService::messageUpdated() signal). If any change in message state occurs, you should apply the corresponding message update to your app's copy of the message using this function.

This function returns the list of attachments as a QList of Attachment objects. You can use this information to download or view attachments of the message. You can choose to load the actual content of the attachment lazily when Attachment::data() is called

This function returns the body as a MessageBody. You can use this information to display the contents of the message. You can choose to load the actual content of the body lazily when MessageBody::data() is called.

This function returns the class type as a value in the MessageClass::Type enumeration. You can use this information to determine if the message is of a specific class type (for example, a meeting invitation).

This function returns error details that are associated with the message when the message transmission fails. You can use this information to determine what type of error occurred and handle it appropriately.

boolhasAttachments()

You can use this function to determine if a list of messages returned by the MessageService has attachments. To retrieve the full list of attachments for a specific message, you can call MessageService::message().

1. Download the tools

Before you start developing, you'll need to visit the Downloads tab. Here you'll find downloads for the BlackBerry 10 Native SDK, BlackBerry 10 Device Simulator, and some other useful tools.

2. Try the sample apps

Now featuring a filter control, the Sample apps tab allows you to search for samples by name or by feature.

Select either the Core or Cascades radio buttons to display the samples relevant to you.

3. Educate yourself

The Documentation tab contains tons of examples, tutorials, and best practices to guide you along the path towards building an awesome app.

You can access all the documentation that you need in the left-hand navigation.

4. Start developing

The Reference tab is where you'll find essential details about how to use our APIs.

You can use the left-hand navigation to choose how you would like to browse the reference: by module, by topic, or alphabetically. If you have an idea of what you are looking for, start typing it in the Filter box.