public Task SetVolume(double volume) { this.Volume = volume; //set global engine volume SetEngineVolume(volume); //store persistently return(Preferences.Set(PREFERENCES_KEY_VOLUME, volume)); }
public Task SetVolume(double volume) { var virtualVolume = GetVirtualVolumeService(); if (virtualVolume != null) { return(virtualVolume.SetVolume(volume)); } return(Preferences.Set(PREFERENCES_KEY_VOLUME_DUMMY, volume)); }
// <summary> // Set a value for the specified key. // </summary> public static void Set(string key, object value) { provider.Set(key, value); }