Share via


AccessoryManager.ClearToast(String) Method

Definition

When a toast message is read on an accessory device, it can cause the toast to be cleared on the phone by using this method. The entry in the Action Center for the toast will be cleared as a visible result of calling this method.

public:
 static void ClearToast(Platform::String ^ instanceId);
 static void ClearToast(winrt::hstring const& instanceId);
public static void ClearToast(string instanceId);
function clearToast(instanceId)
Public Shared Sub ClearToast (instanceId As String)

Parameters

instanceId
String

Platform::String

winrt::hstring

String containing the instance id of the toast to clear.

Windows requirements

App capabilities
accessoryManager

Applies to