spotify/cocoalibspotify — pull request #132 by trenskow (2013-01-11 10:35:15+00:00)
Title: Offline sync controls

# Summery

Adds the ability to set offline syncing properties. Allows for setting weather syncing should be done over Wifi and/or cellular networks. The connectionType property (see below) is readonly, as it is automatically set by connection changes pushed to SPSession from the SystemConfiguration.framework (using SCNetworkReachability).

Also adds the ability to force libspotify in offline mode and setting the bitrate of offline synced tracks.

-----

The following method and properties has been added to SPSession:

@property (nonatomic, readwrite) BOOL forceOfflineMode
@property (nonatomic, readwrite) BOOL allowSyncOverWifi
@property (nonatomic, readwrite) BOOL allowSyncOverMobile
@property (nonatomic, readonly) sp_connection_type connectionType

- (void)setPreferredOfflineBitrate:(sp_bitrate)bitrate allowResync:(BOOL)allowResync

----

**Remark:** Needs documentation regeneration. Year 2013 makes too many changes to the documentation to include in this pull request.