CashDrawer.CheckHealthAsync(UnifiedPosHealthCheckLevel) Method

Definition

Gets the device's health state asynchronously.

public:
 virtual IAsyncOperation<Platform::String ^> ^ CheckHealthAsync(UnifiedPosHealthCheckLevel level) = CheckHealthAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> CheckHealthAsync(UnifiedPosHealthCheckLevel level);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> CheckHealthAsync(UnifiedPosHealthCheckLevel level);
function checkHealthAsync(level)
Public Function CheckHealthAsync (level As UnifiedPosHealthCheckLevel) As IAsyncOperation(Of String)

Parameters

level
UnifiedPosHealthCheckLevel

The specified health check level.

Returns

IAsyncOperation<String>

This value is intended to be reflected in the app interface immediately so the user of the app can interpret it. For example, it will return “OK” as the health string if the device state is good.

Attributes

Remarks

This feature behaves identically to corresponding features in the other POS peripherals, and support for this operation is required by the UPOS standard.

Applies to