トピックの削除

トピックを削除するには delete メソッドを実行します。

  • // Assume that the target topic has been instantiated.
    
    try {
      // Delete the topic.
      topic.delete();
    } catch (IOException ioe) {
      // Handle the error.
    } catch (AppException e) {
      // Handle the error.
    }
  • // Assume that the target topic has been instantiated.
    
    // Delete the topic.
    topic.delete(new KiiTopicCallBack() {
      @Override
      public void onDeleteCompleted(int taskId, Exception exception) {
        if (exception != null) {
          // Handle the error.
          return;
        }
      }
    });