Class NearbyActivityStop
- Namespace
- Plugin.Maui.NearbyConnectivity
- Assembly
- Plugin.Maui.NearbyConnectivity.dll
How an activity stopped.
public sealed record NearbyActivityStop : IEquatable<NearbyActivityStop>
- Inheritance
-
NearbyActivityStop
- Implements
- Inherited Members
Remarks
Read from LastStop. What blocks a restart is deliberately not carried here: computing it needs a fresh platform check that a routine stop should not pay for. Call CheckAvailabilityAsync(CancellationToken) when diagnosing a fault.
Constructors
NearbyActivityStop(NearbyActivityStopReason, Exception?)
How an activity stopped.
public NearbyActivityStop(NearbyActivityStopReason Reason, Exception? Error)
Parameters
ReasonNearbyActivityStopReasonWhy it stopped.
ErrorExceptionThe fault that ended it when
Reasonis Faulted; otherwise null.
Remarks
Read from LastStop. What blocks a restart is deliberately not carried here: computing it needs a fresh platform check that a routine stop should not pay for. Call CheckAvailabilityAsync(CancellationToken) when diagnosing a fault.
Properties
Error
public Exception? Error { get; init; }
Property Value
Reason
Why it stopped.
public NearbyActivityStopReason Reason { get; init; }