Contents

callAsFunction(_:)

Sends a permission question to a parent or guardian.

Declaration

@MainActor func callAsFunction<Topic>(_ question: PermissionQuestion<Topic>) async throws where Topic : QuestionTopic

Parameters

  • question:

    The permission question to send.

Discussion

Call this method to present the system permission request UI. The method throws an error if the system can’t send the permission question.