|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.blackberry.api.bbm.platform.Plugin
|
+--net.rim.blackberry.api.bbm.platform.service.Service
|
+--net.rim.blackberry.api.bbm.platform.service.UIService
This class provides access to the BBM UI, allowing you to add menu items, start a BBM chat, send a file to BBM, and other functionality
| Method Summary | ||
abstract MenuItemManager |
getMenuItemManager()
Returns an instance of the MenuItemManager. |
|
abstract void |
inviteToBBM()
Displays contact picker with all contacts who are not in user's BBM Contact List but in the application's session/channel. |
|
abstract void |
inviteToBBM(BBMInvitationRequest[] requests)
The application can use this method to send a BBM invitation to contacts whose information is provided by BBMInvitationRequest. |
|
abstract void |
inviteToBBM(BBMPlatformConnection connection)
Displays the contact picker with contacts in the session/channel. |
|
abstract BBMPlatformContactList |
showContactPicker(String title,
ContactListProvider clProvider,
boolean isMultiSelectSupported,
boolean showSelectAll)
Displays Contact Picker with contacts provided by ContactListProvider |
|
abstract BBMPlatformContactList |
showContactPicker(String title,
ContactListProvider clProvider,
int groupType,
boolean isMultiSelectSupported,
boolean showSelectAll)
displays Contact Picker with provided groupType contacts displays Contact Picker with contacts provided by ContactListProvider |
|
abstract BBMPlatformContactList |
showContactPicker(String title,
int groupType,
boolean isMultiSelectSupported,
boolean showSelectAll)
Displays Contact Picker with provided groupType contacts |
|
abstract void |
startBBMChat(BBMPlatformContactList contactList,
String message)
Opens a BBM conversation window with the provided contact and a specified message in the ReplyField |
|
abstract void |
startBBMChat(String message)
Opens a BBM conversation window with a specified message in the ReplyField and opens a contact picker containing all the BBM contacts |
|
| Methods inherited from class net.rim.blackberry.api.bbm.platform.Plugin |
getName |
| Method Detail |
public abstract MenuItemManager getMenuItemManager()
public abstract void inviteToBBM()
This method will block as the user selects contacts to invite.
public abstract void inviteToBBM(BBMInvitationRequest[] requests)
requests - array of BBMInvitationRequest for contacts that the user can select to invite to BBM.
This method will block as the user selects contacts to invite.
If requests is null or of size 0 or contains contacts, this method will return without any action.
The contact picker will show up containing the list of BBMInvitationRequest which return valid values for BBMInvitationRequest.getId()
and BBMInvitationRequest.getName()
If none of the BBMInvitationRequest in requests contains a valid value for BBMInvitationRequest.getId()
or BBMInvitationRequest.getName() this method will return without any action.
IllegalArgumentException - if requests size exceeds 24public abstract void inviteToBBM(BBMPlatformConnection connection)
connection - The connection from which the TPA user wants to invite BBM contacts.
If connection is null or has no contacts this method will return without any action.
If there is only 1 contact in the connection that is not on the user's BBM contact list,
the contact picker screen will be skipped and the user will be taken to the BBM Invitation Screen.
This method will block as the user selects contacts to invite.
public abstract BBMPlatformContactList showContactPicker(String title, ContactListProvider clProvider, boolean isMultiSelectSupported, boolean showSelectAll)
ContactListProvidertitle - of contact picker UIclProvider - ContactListProvider provides list of group names and contact list for each groupisMultiSelectSupported - adds checkboxes if its trueshowSelectAll - adds SelectAll option on the top if true, will have not effect if isMultiSelectSupported is falsepublic abstract BBMPlatformContactList showContactPicker(String title, ContactListProvider clProvider, int groupType, boolean isMultiSelectSupported, boolean showSelectAll)
title - of contact picker UIclProvider - ContactListProvider provides list of group names and contact list for each groupgroupType - defined in ContactListProvider ContactListProviderisMultiSelectSupported - adds checkboxes if its trueshowSelectAll - adds SelectAll option on the top if true, will have not effect if isMultiSelectSupported is falsepublic abstract BBMPlatformContactList showContactPicker(String title, int groupType, boolean isMultiSelectSupported, boolean showSelectAll)
title - of contact picker UIgroupType - defined in ContactListProviderisMultiSelectSupported - adds checkboxes if its trueshowSelectAll - adds SelectAll option on the top if true, will have not effect if isMultiSelectSupported is falsepublic abstract void startBBMChat(BBMPlatformContactList contactList, String message)
contactList - list of contacts with whom to conversemessage - to display in the ReplyField of the conversation windowpublic abstract void startBBMChat(String message)
message - to display in the ReplyField of the conversation window
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999- 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.