Share via


ConversationalAgentSession.RequestActivation Method

Definition

Requests that the digital assistant be activated to the foreground.

public:
 virtual ConversationalAgentActivationResult RequestActivation(ConversationalAgentActivationKind activationKind) = RequestActivation;
ConversationalAgentActivationResult RequestActivation(ConversationalAgentActivationKind const& activationKind);
public ConversationalAgentActivationResult RequestActivation(ConversationalAgentActivationKind activationKind);
function requestActivation(activationKind)
Public Function RequestActivation (activationKind As ConversationalAgentActivationKind) As ConversationalAgentActivationResult

Parameters

activationKind
ConversationalAgentActivationKind

The supported agent activation type.

When activation is requested, you can choose whether the agent is activated in a voice activation preview window or normal window.

Returns

The result of the activation.

Windows requirements

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

Remarks

This is an updated version of the RequestForegroundActivationAsync method.

Applies to