code: public void setBoardEnabled(boolean enable) {
          final NotificationRootView root = mWindow.mRoot;
          root.setBoardEnabled(enable);
          if (enable && mBoard == null) {
              mBoard = root.getBoard();
              mBoard.addStateListener(new BoardStateListener());
          }
      }
docs: Enable/disable notification board
  
  @param enable