public void setNotificationStatusListener ( MFPPushNotificationStatusListener statusListener ) { this . statusListener = statusListener ; synchronized ( pendingStatus ) { if ( ! pendingStatus . isEmpty ( ) ) { for ( Map . Entry < String , MFPPushNotificationStatus > entry : pendingStatus . entrySet ( ) ) { changeStatus ( entry . getKey ( ) , entry . getValue ( ) ) ; } pendingStatus . clear ( ) ; } } }
Set the listener class to receive the notification status changes .