Contents

PluginPermission.allowNetworkConnections(scope:reason:)

Create a permission to make network connections.

Declaration

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.

Discussion

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

Create a permission