-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/ide.host", | ||
"icon": "shiny.png", | ||
"appliesTo": "UseMaui", | ||
"defaultItemExtension": "cs", | ||
"itemHierarchyPaths": [ ".NET MAUI" ], | ||
"unsupportedHosts": [ | ||
{ | ||
"id": "vs", | ||
"version": "(,17.3)" | ||
} | ||
], | ||
"requiredComponents": [ | ||
{ | ||
"id": "Microsoft.VisualStudio.ComponentGroup.Maui.All", | ||
"hostId": "vs", | ||
"componentType": "SetupComponent" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/template", | ||
"author": "Shiny", | ||
"classifications": [ "MAUI", "Code" ], | ||
"identity": "Shiny.Templates.PushDelegate", | ||
"groupIdentity": "Shiny.Templates", | ||
"name": "Shiny Push Delegate", | ||
"shortName": "shinypushdelegate", | ||
"tags": { | ||
"language": "C#", | ||
"type": "item" | ||
}, | ||
"primaryOutputs": [ | ||
{ | ||
"path": "GpsDelegate.cs" | ||
} | ||
], | ||
"postActions": [ | ||
{ | ||
"id": "openInEditor", | ||
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")", | ||
"description": "Opens GpsDelegate.cs in the editor.", | ||
"manualInstructions": [], | ||
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6", | ||
"args": { | ||
"files": "0" | ||
}, | ||
"continueOnError": true | ||
} | ||
], | ||
"sourceName": "PushDelegate", | ||
"defaultName": "PushDelegate", | ||
"symbols": { | ||
"namespace": { | ||
"type": "parameter", | ||
"datatype": "text", | ||
"description": "Namespace for this class", | ||
"replaces": "ShinyApp" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Shiny.Push; | ||
#if APPLE | ||
using UIKit; | ||
using UserNotifications; | ||
#endif | ||
|
||
namespace ShinyApp; | ||
|
||
|
||
public partial class MyPushDelegate : PushDelegate | ||
{ | ||
public override async Task OnEntry(PushNotification notification) | ||
{ | ||
} | ||
|
||
public override async Task OnReceived(PushNotification notification) | ||
{ | ||
} | ||
|
||
public override async Task OnNewToken(string token) | ||
{ | ||
} | ||
|
||
public override async Task OnUnRegistered(string token) | ||
{ | ||
} | ||
} | ||
|
||
#if APPLE | ||
public partial class MyPushDelegate : IApplePushDelegate | ||
{ | ||
public UNNotificationPresentationOptions? GetPresentationOptions(PushNotification notification) => null; | ||
|
||
public UIBackgroundFetchResult? GetFetchResult(PushNotification notification) => null; | ||
} | ||
#endif |