public void setActive ( boolean active ) { if ( this . active != active ) { this . active = active ; inviteListener . setActive ( active ) ; acceptListener . setActive ( active ) ; participants . clear ( ) ; participants . add ( self ) ; participantListener . setActive ( active ) ; } }
Sets the listening state of the service . When set to false the service stops listening to all events .