java/srcPubnubApi/com/pubnub/api/PubnubCore.java
/**
     * Unsubscribe from channels.
     *
     * @param channels String array containing channel names
     */
Unsubscribe from channels.
@param channels String array containing channel names
Unsubscribe from channels . @param channels String array containing channel names
public void unsubscribe(String[] channels) {
        for (int i = 0; i < channels.length; i++) {
            String channel = channels[i];
            channelSubscriptions.removeItem(channel);
            channelSubscriptions.state.remove(channel);
            leave(channel);
        }
        resubscribe();
    }
public void unsubscribe ( String [ ] channels ) { for ( int i = 0 ; i < channels . length ; i ++ ) { String channel = channels [ i ] ; channelSubscriptions . removeItem ( channel ) ; channelSubscriptions . state . remove ( channel ) ; leave ( channel ) ; } resubscribe ( ) ; }
Unsubscribe from channels.
Unsubscribe from channels .