public interface NotificationHandler
Here is an example, you should put similar code to your Activity class.
final FragmentManager manager = getSupportFragmentManager();
CommunicationFragment fragment = (CommunicationFragment) manager.findFragmentByTag(FRAGMENT_TAG);
if (fragment == null) {
fragment = CommunicationFragment.newInstance();
manager.beginTransaction()
.add(R.id.cx_container, fragment, FRAGMENT_TAG)
.commit();
}
fragment.setNotificationHandler(yourNotificationHandlerImpl);
Modifier and Type | Method and Description |
---|---|
void |
notification(NotificationPayload payload)
The Notification callback when event happens.
|
void notification(NotificationPayload payload)
payload
- notification payload