Share via


SecondaryAuthenticationFactorInfo.UpdateDevicePresenceAsync Method

Definition

Deprecated. Manually assigns a presence state to a device.

Note

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft to use the secondaryAuthenticationFactor capability, calls to this API will fail. To apply for approval, contact cdfonboard@microsoft.com. For more information on capabilities, see App capability declarations. For an overview of the Companion Device Framework, see the Windows Unlock with companion (IoT) devices overview.

public:
 virtual IAsyncAction ^ UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence presenceState) = UpdateDevicePresenceAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence const& presenceState);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("UpdateDevicePresenceAsync is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.Foundation.UniversalApiContract")]
IAsyncAction UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence const& presenceState);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence presenceState);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("UpdateDevicePresenceAsync is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.Foundation.UniversalApiContract")]
public IAsyncAction UpdateDevicePresenceAsync(SecondaryAuthenticationFactorDevicePresence presenceState);
function updateDevicePresenceAsync(presenceState)
Public Function UpdateDevicePresenceAsync (presenceState As SecondaryAuthenticationFactorDevicePresence) As IAsyncAction

Parameters

presenceState
SecondaryAuthenticationFactorDevicePresence

A SecondaryAuthenticationFactorDevicePresence value indicating the device's presence state.

Returns

An asynchronous action for the operation.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

This method should only be used when a companion device's monitoring mode is set to SecondaryAuthenticationFactorDevicePresenceMonitoringMode.AppManaged. In this case, the app that is using the companion device for authentication must incorporate the third party app's presence-monitoring functionality and manually assign a SecondaryAuthenticationFactorDevicePresence value according to the result.

Applies to