setServiceStatus(_:channelUUID:completionHandler:)
Sets the service connection status.
Declaration
func setServiceStatus(_ status: PTServiceStatus, channelUUID: UUID, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)func setServiceStatus(_ status: PTServiceStatus, channelUUID: UUID) async throwsParameters
- status:
The service status.
- channelUUID:
The channel identifier.
- completionHandler:
The completion handler.
errorAn error, if any, that indicates the reason why the system couldn’t set the status of the service.
Discussion
The default value for the service status is PTServiceStatus.ready. Set the appropriate service status if your network connection experiences an issue. The system reflects your service status in the user interface.