How to add channel if Replication is running?

I am working with dynamic channels for Replication pull at couchbase lite. If i use single replication object, i need to stop first,then start. That’s problem if pull is running . How to solve this problem .How i will know is pull running . Any way to create multiple object of Replication?

It’s running if its status says it’s not stopped or idle.
The easiest way to update its settings is to change the settings and then call restart.