LocalNetworkGateAction

What the Connections UI should do when the user takes a TCP-connect action that may need ACCESS_LOCAL_NETWORK.

The policy is prompt-when-possible, warn-when-not, and NEVER block: on Android 17 (API 37) the permission gates the socket itself — an ungranted local connect times out rather than failing fast — but a TCP address says nothing about locality. A radio reached over a public IP, a port-forward, or a VPN needs no local-network permission at all, so a hard block on the permission would break connections that were never subject to it.

Entries

Link copied to clipboard

The permission is held; run the connect.

Link copied to clipboard

The system will still show a prompt; request in-context and run the connect once the request resolves.

Link copied to clipboard

The system will no longer prompt. Surface the warning that names the fix (system settings), then run the connect anyway — the target may not be local, and the OS enforces the permission at the socket regardless.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.