Class RemoteAccessState
Represents whether the app's page and API can be reached from the local network, and how, as the remote access's start and the pairing screen's poll answer it.
public class RemoteAccessState
- Inheritance
-
RemoteAccessState
- Inherited Members
Properties
ConnectedDevices
Gets the devices seen on the local network within the last few seconds: a paired page polls every second, so a closed tab ages out, and two browsers on one phone count once.
[JsonConverter(typeof(ArrayConverter<IPAddress, IPAddressConverter>))]
public required IPAddress[] ConnectedDevices { get; init; }
Property Value
IsActive
Gets a value indicating whether the local network can reach the app now: a pairing screen holds it, or it is always on.
public required bool IsActive { get; init; }
Property Value
IsAlwaysOn
Gets a value indicating whether the listener is on for the whole run, as in a debug build or with the
/remote-access command, so no screen holds it and closing one changes nothing.
public required bool IsAlwaysOn { get; init; }
Property Value
Urls
Gets where a phone can reach the app, best first, each with the pairing token the listener asks for at the first request (none where it is always on); those of the last start or refresh, none before a start.
public required IReadOnlyList<Uri> Urls { get; init; }