java/srcPubnubApi/com/pubnub/api/PubnubCore.java
/**
     * Unsubscribe from all channel groups.
     */
Unsubscribe from all channel groups.
Unsubscribe from all channel groups .
public void channelGroupUnsubscribeAllGroups() {
        String[] groups = channelGroupSubscriptions.getItemNames();
        for (int i = 0; i < groups.length; i++) {
            String group = groups[i];
            channelGroupSubscriptions.removeItem(group);
            channelGroupLeave(group);
        }
        disconnectAndResubscribe();
    }
public void channelGroupUnsubscribeAllGroups ( ) { String [ ] groups = channelGroupSubscriptions . getItemNames ( ) ; for ( int i = 0 ; i < groups . length ; i ++ ) { String group = groups [ i ] ; channelGroupSubscriptions . removeItem ( group ) ; channelGroupLeave ( group ) ; } disconnectAndResubscribe ( ) ; }
Unsubscribe from all channel groups.
Unsubscribe from all channel groups .