Search code examples
iosswiftchirp

How to change SDK state for Chirp in iOS?


I tried changing it manually,

 if chirp.state == CHIRP_SDK_STATE_RUNNING {
        chirp.state = CHIRP_SDK_STATE_STOPPED
    }

but the error reads it is a get only property.


Solution

  • You cannot set the state of the ChirpSDK. To stop the SDK you need to call the stop method. Then the state will change to CHIRP_SDK_STATE_STOPPED.