public void addListener ( final ProfileListener profileListener ) { if ( profileListener != null ) { com . comapi . ProfileListener foundationListener = new com . comapi . ProfileListener ( ) { @ Override public void onProfileUpdate ( ProfileUpdateEvent event ) { profileListener . onProfileUpdate ( event ) ; } } ; profileListeners . put ( profileListener , foundationListener ) ; client . addListener ( foundationListener ) ; } }
Registers listener for changes in profile details .