Share via


AccessoryManager.GetAppIcon(String) Method

Definition

Gets an icon for the given application identifier.

public:
 static IRandomAccessStreamReference ^ GetAppIcon(Platform::String ^ appId);
 static IRandomAccessStreamReference GetAppIcon(winrt::hstring const& appId);
public static IRandomAccessStreamReference GetAppIcon(string appId);
function getAppIcon(appId)
Public Shared Function GetAppIcon (appId As String) As IRandomAccessStreamReference

Parameters

appId
String

Platform::String

winrt::hstring

The identifier associated with the application.

Returns

The stream containing the app's icon.

Windows requirements

App capabilities
accessoryManager

Remarks

Accessories can display a list of apps that it can receive notifications from; the accessory can use this method to get icons for the apps.

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

Applies to