Share via


ActivationSignalDetectionConfiguration.SetEnabledWithResultAsync Method

Definition

Asynchronously enables or disables the configuration in an application-level manner, independent of system-level settings, and returns an indicator of success. The configuration must be both allowed and enabled for its associated ActivationSignalDetector.

Important

To avoid possible concurrency issues, we recommend using SetEnabledAsync instead.

public:
 virtual IAsyncOperation<ActivationSignalDetectionConfigurationStateChangeResult> ^ SetEnabledWithResultAsync(bool value) = SetEnabledWithResultAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ActivationSignalDetectionConfigurationStateChangeResult> SetEnabledWithResultAsync(bool const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ActivationSignalDetectionConfigurationStateChangeResult> SetEnabledWithResultAsync(bool value);
function setEnabledWithResultAsync(value)
Public Function SetEnabledWithResultAsync (value As Boolean) As IAsyncOperation(Of ActivationSignalDetectionConfigurationStateChangeResult)

Parameters

value
Boolean

bool

True, if enabled. Otherwise, false.

Returns

Returns an IAsyncAction object that is used to control the asynchronous operation.

Attributes

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Remarks

Configuration might not be active even if configuration is enabled successfully. For configuration to be active, all necessary resources must be available and configuration permissions must be granted by the user in Settings.

Applies to

See also