Exemplo n.º 1
0
 protected override void OnActivated(string arguments, NotificationUserInput userInput, string appUserModelId)
 {
     lock (NotificationQueue)
     {
         if (_activated == null)
         {
             NotificationQueue.Enqueue(arguments);
         }
         else
         {
             _activated.Invoke(this, new NotificationActionEventArgs(arguments));
         }
     }
 }
 /// <summary>
 /// This method will be called when the user clicks on a foreground or background activation on a toast. Parent app must implement this method.
 /// </summary>
 /// <param name="arguments">The arguments from the original notification. This is either the launch argument if the user clicked the body of your toast, or the arguments from a button on your toast.</param>
 /// <param name="userInput">Text and selection values that the user entered in your toast.</param>
 /// <param name="appUserModelId">Your AUMID.</param>
 protected abstract void OnActivated(string arguments, NotificationUserInput userInput, string appUserModelId);