CortanaActionableInsights CortanaActionableInsights CortanaActionableInsights CortanaActionableInsights CortanaActionableInsights Class

Definition

Derives contextual insights from images or text that let the user learn more about the content, or perform an action based on it.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

public : sealed class CortanaActionableInsights
struct winrt::Windows::Services::Cortana::CortanaActionableInsights
public sealed class CortanaActionableInsights
Public NotInheritable Class CortanaActionableInsights
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)
Capabilities
cortanaSurface

Remarks

The CortanaActionableInsights class requires the following be added to the Package.appxmanifest:

  • To <Package>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Under <Capabilities>
    • <rescap:capability name="cortanaSurface"/>

Properties

User User User User User

Gets the user associated with the current CortanaActionableInsights object.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

Methods

GetDefault() GetDefault() GetDefault() GetDefault() GetDefault()

Retrieves a CortanaActionableInsights object for the current user.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User)

Retrieves a CortanaActionableInsights object for the specified user.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

IsAvailableAsync() IsAvailableAsync() IsAvailableAsync() IsAvailableAsync() IsAvailableAsync()

Asynchronously retrieves whether insights can be generated on the user's current system.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

ShowInsightsAsync(DataPackage) ShowInsightsAsync(DataPackage) ShowInsightsAsync(DataPackage) ShowInsightsAsync(DataPackage) ShowInsightsAsync(DataPackage)

Asynchronously retrieves and displays insights based on the specified text and image content.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions) ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions) ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions) ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions) ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions)

Asynchronously retrieves and displays insights based on the specified text and image content and options.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

ShowInsightsForImageAsync(IRandomAccessStreamReference) ShowInsightsForImageAsync(IRandomAccessStreamReference) ShowInsightsForImageAsync(IRandomAccessStreamReference) ShowInsightsForImageAsync(IRandomAccessStreamReference) ShowInsightsForImageAsync(IRandomAccessStreamReference)

Asynchronously retrieves and displays insights based on the specified image content.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

ShowInsightsForImageAsync(IRandomAccessStreamReference, CortanaActionableInsightsOptions) ShowInsightsForImageAsync(IRandomAccessStreamReference, CortanaActionableInsightsOptions) ShowInsightsForImageAsync(IRandomAccessStreamReference, CortanaActionableInsightsOptions) ShowInsightsForImageAsync(IRandomAccessStreamReference, CortanaActionableInsightsOptions) ShowInsightsForImageAsync(IRandomAccessStreamReference, CortanaActionableInsightsOptions)

Asynchronously retrieves and displays insights based on the specified image content and options.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

ShowInsightsForTextAsync(String) ShowInsightsForTextAsync(String) ShowInsightsForTextAsync(String) ShowInsightsForTextAsync(String) ShowInsightsForTextAsync(String)

Asynchronously retrieves and displays insights based on the specified text content.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions) ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions) ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions) ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions) ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions)

Asynchronously retrieves and displays insights based on the specified text content and options.

Important

The CortanaActionableInsights APIs are a limited access feature. Please contact InsightsAPISupport@microsoft.com for more info, or to request an unlock token.

See also