Example #1
0
 public override Task <double> GetVolumeAsync(CancellationToken cancellationToken)
 {
     return(TaskShim.FromResult(_volume));
 }
Example #2
0
 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()));
 }