Add a listener to the message store for batch updates

  1. Import the required classes and interfaces.
    import net.rim.blackberry.api.mail.event.StoreListener;
    import net.rim.blackberry.api.mail.Store;
    
  2. Implement the StoreListener interface.
    void batchOperation(StoreEvent e) 
    {
       // Perform action when messages added or removed in batch operation.
    }

Was this information helpful? Send us your comments.