allowNetworkConnections(scope:reason:)

    Create a permission to make network connections.

    Target.swift:1466
    SwiftPM
    5.9+
    case allowNetworkConnections(scope: PluginNetworkPermissionScope, reason: String)

    Parameters

    scope

    The scope of the permission.

    reason

    A reason why the permission is needed. This is shown to the user when permission is sought.

    The command plug-in requires permission to make network connections. The reason string is shown to the user at the time of request for approval, explaining why the plug-in is requesting access.

    See also