IToastActions.cs 1.3 KB

123456789101112131415161718192021222324252627
  1. // ******************************************************************
  2. // Copyright (c) Microsoft. All rights reserved.
  3. // This code is licensed under the MIT License (MIT).
  4. // THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  5. // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  6. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  7. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  8. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  9. // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  10. // THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
  11. // ******************************************************************
  12. using System.Collections.Generic;
  13. namespace Microsoft.Toolkit.Uwp.Notifications
  14. {
  15. /// <summary>
  16. /// Actions to display on a Toast notification. One of <see cref="ToastActionsCustom"/> or <see cref="ToastActionsSnoozeAndDismiss"/>.
  17. /// </summary>
  18. public interface IToastActions
  19. {
  20. /// <summary>
  21. /// New in Anniversary Update: Custom context menu items, providing additional actions when the user right clicks the Toast notification.
  22. /// </summary>
  23. IList<ToastContextMenuItem> ContextMenuItems { get; }
  24. }
  25. }