Expose NextCloud Pause Sync

Hi,

I know that there is sync pausing in the NextCloud desktop client which stops pausing until i started on again and it terminates any syncing in process, but what i want is to expose that part of code, so i can use this functionality not through the client’s UI, such as CLI i looked through the code of the client and its a seems a big project, so can you help me by guiding me to the place where this functionality exists? i think its this function correct? and if i want to expose it, say in the main function, what is the best way to do that?

Thanks