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
The system will still show a prompt; request in-context and run the connect once the request resolves.
Denied once, and the system will still prompt. Explain first: the next prompt is the one whose "Deny" becomes permanent, and the permissions guidance requires an educational UI before a re-request. Declining the explanation must still run the connect — the never-block policy above does not bend for a dialog the user dismissed.
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
Functions
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.)
Returns an array containing the constants of this enum type, in the order they're declared.