Define a messaging service listener
The following code
sample assumes that you are creating this class as part of an application that
requires a messaging service listener.
-
Import the required classes and interfaces.
import net.rim.blackberry.api.bbm.platform.*;
import net.rim.blackberry.api.bbm.platform.service.*;
-
Create the framework for the messaging service listener, defining
each callback method's signature. Declare a member variable for the channel
listener associated with this messaging service.
class MyMessagingServiceListener extends MessagingServiceListener
{
public void channelCreated(BBMPlatformChannel channel, InvitationMenuItem menuItem)
{
//add any code for the channel's initialization here
}
public BBMPlatformChannelListener(BBMPlatformChannel channel)
{
return _channelListener;
}
}
Was this information helpful? Send us your comments.