How to change SDK state for Chirp in iOS?

56 Views Asked by At

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.

1

There are 1 best solutions below

0
joextodd On BEST ANSWER

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.