Represents an Apple iPod device
The following tables list the members exposed by IPod.
Public Properties
| Name | Description | |
|---|---|---|
|
DatabaseVersion | Version number of the iPod's iTunesDB database. |
|
DeviceInfo | List of supported artwork formats for this iPod. This list is used when adding album art to tracks. Only supported for later-model iPods which support the SCSI data enquiry command. Type and generation of iPod (Mini, Shuffle, Video etc.) Only supported for later-model iPods which support the SCSI data enquiry command. |
|
DriveLetter | Drive the iPod is using. |
|
FileSystem | The DeviceFileSystem is an abstraction of the file system used by a specific iPod. Currently, this is either standard or iPhone |
|
IsWritable | True if changes can be made to iPod. |
|
NeedsSaving | Returns true if there are in-memory changes that will be persisted to the iPod when SaveChanges() is called. |
|
Playlists | List of all playlists on the iPod. Use this to add/remove/enumerate playlists |
|
Tracks | List of all tracks on the iPod. Use this to add/remove/enumerate tracks |
Public Methods
| Name | Description | |
|---|---|---|
|
AcquireLock | Opens the ipod_control\iTunes\iTunesLock file and locks it for exclusive access. This means if the user tries to 'Safely remove hardware' from the system tray, Windows will disallow removal. Otherwise, the device will likely be able to be disconnected. Note: You must call ReleaseLock() when you're done with the iPod. |
|
AssertIsWritable | Throws UnsupportedITunesVersionException if writing is not supported. |
|
Eject | Eject iPod from Windows. If you try to Eject the iPod, and your code is running on the iPod, an exception will be thrown directing the user to close the app and use the standard windows feature. |
|
Equals | Determines whether the specified |
|
GetAllConnectedIPods | Returns all connected iPods. This is slower than GetConnectediPod as it must enumerate all drives, so only use if you know you need to handle multiple iPods at once. |
|
GetConnectedIPod | Overloaded. Returns the first detected iPod. Do not sync PlayCounts file. |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetiPodByDrive | Loads the iPod from the specified drive. If you already know the iPod's drive letter, this is more performant than calling GetConnectedIPod(). |
|
GetType | Gets the |
|
ReleaseLock | Closes and deletes the iTunesLock file locked in the AcquireLock() call. |
|
SaveChanges | Save changes to iPod database (DeviceFileSystem.iTunesDBPath, DeviceFileSystem.ArtworkDBPath). This will only perform a save if changes have been made, otherwise will immediately return. |
|
ToString | Overridden. |