SDK Reference · Callback
conversationReceivedPermissionResult
Reports a resolved media-permission result to the application.
func conversationReceivedPermissionResult(
permission: STMediaPermission,
status: STPermissionStatus
)
The current runner handles microphone and speech-recognition permission events, updates its internal permission state, and then forwards the resolved result through this callback.
Behavior
Reports a resolved microphone or speech-recognition permission state.
Parameters
permission(STMediaPermission): The permission being reported.status(STPermissionStatus): Resolved permission status.
Timing and execution
When a runtime-field update or client decision must affect the framework immediately, perform it synchronously within this callback, before returning. UI updates that do not affect the immediate conversation decision can be dispatched separately.
Swift example
Implement this method in a class conforming to STConversationCallback. This focused example demonstrates the callback entry point; adapt application behavior to your own workflow.
public func conversationReceivedPermissionResult(
permission: STMediaPermission, status: STPermissionStatus
) {
print("Permission \(permission): \(status)")
}