protected override async void Pause() { try { await GSMTCSession?.TryPauseAsync(); } catch { } }
public async Task <bool> pauseTrack(GlobalSystemMediaTransportControlsSession session) { try { return(await session.TryPauseAsync()); } catch { return(false); } }