Échantillon de code : démarrage d'un chat BBM
L'échantillon de code suivant suppose que la classe qui a affiché MyBBMChatScreen a transmis une référence à l'objet BBMPlatformContext associé à l'application dans le constructeur MyBBMChatScreen.
import net.rim.blackberry.api.bbm.platform.*;
import net.rim.blackberry.api.bbm.platform.service.*;
public class MyBBMChatScreen extends MainScreen
{
public MyBBMChatScreen(BBMPlatformContext platformContext)
{
platformContext.getUIService().startBBMChat("Let's chat!");
}
}
Sujet suivant: Envoyer une invitation de téléchargement à un contact
Sujet précédent: Démarrer un chat BlackBerry Messenger
Ces informations vous ont-elles été utiles ? Envoyez-nous vos commentaires.