Skip to content

0200 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions BackgroundTaskComponent/ToastNotificationBackgroundTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public async void Run(IBackgroundTaskInstance taskInstance)
}

// Otherwise handle other background activations
else
throw new NotImplementedException();
}

finally
Expand Down Expand Up @@ -88,10 +86,6 @@ private async Task HandleLike(ToastNotificationActionTriggerDetail details, Quer
SendToast("Your like has been sent!");
}

/// <summary>
/// Simple method to show a basic toast with a message.
/// </summary>
/// <param name="message"></param>
private void SendToast(string message)
{
ToastContent content = new ToastContent()
Expand Down
6 changes: 1 addition & 5 deletions Quickstart-Sending-Local-Toast/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,14 @@ protected override async void OnLaunched(LaunchActivatedEventArgs e)
await OnLaunchedOrActivated(e);
}

/// <summary>
/// Invoked when the application is activated by some means other than normal launching.
/// </summary>
/// <param name="e">Event data for the event.</param>
protected override async void OnActivated(IActivatedEventArgs e)
{
await OnLaunchedOrActivated(e);
}

private async Task OnLaunchedOrActivated(IActivatedEventArgs e)
{
// Initialize things like registering background task before the app is loaded
// Initialize required items before the app is loaded
await InitializeApp();

#if DEBUG
Expand Down
2 changes: 0 additions & 2 deletions Quickstart-Sending-Local-Toast/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ private void ButtonSendToast_Click(object sender, RoutedEventArgs e)
string logo = "ms-appdata:///local/Andrew.jpg";
int conversationId = 384928;

// Construct the visuals of the toast
ToastVisual visual = new ToastVisual()
{
BindingGeneric = new ToastBindingGeneric()
Expand Down Expand Up @@ -58,7 +57,6 @@ private void ButtonSendToast_Click(object sender, RoutedEventArgs e)
}
};

// Construct the actions for the toast (inputs and buttons)
ToastActionsCustom actions = new ToastActionsCustom()
{
Inputs =
Expand Down