AccessoryManager.ClearToast(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for