MessageService

Since: BlackBerry 10.0.0

#include <bb/platform/bbm/MessageService>

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

Represents a class that provides a message service for the BBM Social Platform.

MessageService is a class that provides access to message related services, such as download invitations.


Overview

Public Functions Index

MessageService (Context *context, QObject *parent=0)
virtual ~MessageService ()
boolsendDownloadInvitation () const

Public Functions

MessageService (

Creates a new MessageService object.

Parameters
context

The Context object that provides access to the ContactsService. All contacts related to this service will be populated in this list. A Context object with RegistrationState::Allowed is necessary for creation of the MessageService object.

parent

The QObject parent of this MessageService object.

Since:

BlackBerry 10.0.0

virtual~MessageService ()

Destructor.

Since:

BlackBerry 10.0.0

bool sendDownloadInvitation ()

Invites BBM contacts of the current user to download your app.

The Contact Picker will pop up to allow the user to select the contacts to invite. Only the contacts who do not have the application installed will be displayed in the Contact Picker.

Return:

true if successful, false otherwise.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus