ToastContentBuilder.AddToastActivationInfo 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.
Instead of this method, for foreground/background activation, it is suggested to use AddArgument(String, String) and optionally SetBackgroundActivation(). For protocol activation, you should use SetProtocolActivation(Uri). Add info that can be used by the application when the app was activated/launched by the toast.
public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddToastActivationInfo (string launchArgs, Microsoft.Toolkit.Uwp.Notifications.ToastActivationType activationType);
member this.AddToastActivationInfo : string * Microsoft.Toolkit.Uwp.Notifications.ToastActivationType -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddToastActivationInfo (launchArgs As String, activationType As ToastActivationType) As ToastContentBuilder
Parameters
- launchArgs
- String
Custom app-defined launch arguments to be passed along on toast activation
- activationType
- ToastActivationType
Set the activation type that will be used when the user click on this toast
Returns
The current instance of ToastContentBuilder