diff --git a/.gitignore b/.gitignore index 2359c60d..1a305311 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ _repo.*/ .openpublishing.buildcore.ps1 .DS_Store +/.vs diff --git a/docs/maui/views/MediaElement.md b/docs/maui/views/MediaElement.md index 2c1a4ac2..185094ab 100644 --- a/docs/maui/views/MediaElement.md +++ b/docs/maui/views/MediaElement.md @@ -135,6 +135,23 @@ For a full example of this method included in an application please refer to the Edit the `Info.plist` for `MacCatalyst` and add the following keys. ```csharp +UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + __MAUI_DEFAULT_SCENE_CONFIGURATION__ + UISceneDelegateClassName + SceneDelegate + + + + UIBackgroundModes bluetooth-central @@ -143,6 +160,21 @@ Edit the `Info.plist` for `MacCatalyst` and add the following keys. NSLocalNetworkUsageDescription ``` +Add the following to a new file `SceneDelegate.cs` in the `Platforms/MacCatalyst` folder.` +```csharp +using System; +using Foundation; +using Microsoft.Maui; +using ObjCRuntime; +using UIKit; + +namespace CommunityToolkit.Maui.Sample.Platforms.MacCatalyst; + +[Register("SceneDelegate")] +public class SceneDelegate : MauiUISceneDelegate +{ +} +``` ### [iOS](#tab/ios)