public override Task <double> GetVolumeAsync(CancellationToken cancellationToken) { return(TaskShim.FromResult(_volume)); }
public Task <bool> GetMuteAsync(CancellationToken cancellationToken) { return(TaskShim.FromResult(_isMuted)); }
public Task <IEnumerable <IAudioSession> > ActiveSessionsAsync() { return(TaskShim.FromResult(ActiveSessions())); }
public Task <IEnumerable <IAudioSession> > AllAsync() { return(TaskShim.FromResult(All())); }
int IAudioSessionNotification.OnSessionCreated(IAudioSessionControl sessionControl) { TaskShim.Run(async() => await CreateSession(sessionControl)); return(0); }
public Task <IEnumerable <IAudioSession> > ExpiredSessionsAsync() { return(TaskShim.FromResult(ExpiredSessions())); }