Attach to a new topic

Your application can create an attachment to a new topic.

The attachNewTopic method creates an attachment to a new topic. For information about the attachmentInput argument, see Attach to an existing topic.

attachNewTopic method

TopicResult attachNewTopic(TopicsServiceContext topicsServiceContext,
  TopicInput topicInput, AttachmentInput attachmentInput)
  throws InvalidArgumentException, TopicsServiceException;

To create an attachment to a new topic: