TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xScherpschutter/Deeztracker-Mobile/llms.txt
Use this file to discover all available pages before exploring further.
RusteerService is a stateless service that provides high-performance music download and search functionality through a Rust FFI (Foreign Function Interface). Each method receives an ARL authentication token as a parameter.
This service is auto-generated from Rust code using UniFFI. It provides direct access to the native Rusteer library for optimal performance.
Implementation
The service is typically accessed throughRustDeezerService, which provides a higher-level Kotlin wrapper with session management and coroutine support.
Source Location: app/src/main/java/com/crowstar/deeztrackermobile/features/rusteer/rusteer.kt:1237
Constructor
RusteerService()
Creates a new instance of the Rusteer service.The service is stateless - you can create multiple instances or reuse a single instance. Authentication is handled per-method via ARL tokens.
Methods
verifyArl()
Verifies if an ARL token is valid for authentication with Deezer.The Deezer ARL (Authentication Refresh Login) token to validate
true if the ARL token is valid, false otherwisesearchTracks()
Search for tracks on Deezer.Valid ARL authentication token
Search query (e.g., “Artist - Title” or “Album Name”)
List of matching tracks. Returns empty list if no results found.
downloadTrack()
Download a single track from Deezer.Valid ARL authentication token
The Deezer track ID to download
Directory path where the track will be saved
Download quality enum:
FLAC, MP3_320, or MP3_128Result object containing download information
downloadAlbum()
Download all tracks from a Deezer album.Valid ARL authentication token
The Deezer album ID to download
Directory path where album tracks will be saved
Download quality enum:
FLAC, MP3_320, or MP3_128Batch result containing successful downloads and failures
downloadPlaylist()
Download all tracks from a Deezer playlist.Valid ARL authentication token
The Deezer playlist ID to download
Directory path where playlist tracks will be saved
Download quality enum:
FLAC, MP3_320, or MP3_128Batch result containing successful downloads and failures
Error Handling
All download methods can throw exceptions. Wrap calls in try-catch blocks:Memory Management
The service implementsDisposable and AutoCloseable. While the cleaner will automatically free resources, you can manually clean up:
Thread Safety
The service is thread-safe and can be called from multiple coroutines or threads simultaneously. However, each method call is blocking and should be executed on a background thread.
See Also
- DownloadManager - High-level manager with queue and state management
- PlayerController - Playback control for downloaded tracks