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
public class MemoryMonitor | |
{ | |
private readonly List<WeakReference> _monitoredItems = []; | |
private static readonly Lazy<MemoryMonitor> _instance = new(() => new MemoryMonitor()); | |
public static MemoryMonitor Instance { get; } = _instance.Value; | |
public void MonitorItem(object item) | |
{ | |
_monitoredItems.Add(new WeakReference(item)); |
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
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="Plugin.Maui.Audio.Sample.Pages.MusicPlayerPage" | |
x:DataType="viewmodels:MusicPlayerPageViewModel" | |
xmlns:converters="clr-namespace:Plugin.Maui.Audio.Sample.Converters" | |
Title="{converters:ToUppercase MusicItemViewModel.Title}"> | |
</ContentPage> |
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
[{"Path":"M25,0 L50,0 L50,25 C50,38.8071187 38.8071187,50 25,50 L0,50 L0,25 C0,11.1928813 11.1928813,0 25,0 Z"},{"Path":"M25,0 L50,0 L50,50 L0,50 L0,25 C0,11.1928813 11.1928813,0 25,0 Z"},{"Path":"M25,0 L0,0 L0,50 L50,50 L50,25 C50,11.1928813 38.8071187,0 25,0 Z"},{"Path":"M50,0 L50,50 L25,50 C11.1928813,50 0,38.8071187 0,25 C0,11.3309524 10.9701429,0.224119049 24.5865793,0.00334928573 L25,0 L50,0 Z"},{"Path":"M0,0 L50,0 L50,50 L0,50 L0,0 Z"},{"Path":"M0,50 L25,0 L50,50 L0,50 Z"},{"Path":"M25,0 L46.6506351,12.5 L46.6506351,37.5 L25,50 L3.34936491,37.5 L3.34936491, 12.5 Z"},{"Path":"M8,25 25,0 42,25 25,50 Z"},{"Path":"M24,0 47.7764129,17.2745751 38.6946313,45.2254249 9.30536869,45.2254249 0.223587093,17.2745751 Z"},{"Path":"M0,14 12,0 38,0 50,14 25,50 Z"}] |
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
public interface IAudioHandler | |
{ | |
bool IsOtherAudioPlaying { get; } | |
} |