Table of Contents

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

Reason NearbyActivityStopReason

Why it stopped.

Error Exception

The fault that ended it when Reason is 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

The fault that ended it when Reason is Faulted; otherwise null.

public Exception? Error { get; init; }

Property Value

Exception

Reason

Why it stopped.

public NearbyActivityStopReason Reason { get; init; }

Property Value

NearbyActivityStopReason