-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat : char detail ui updated, return playlist and track id on track item click * feat : added support for direct play track from the play list in chart detail view * feat : player background marked as clickable to stop taking action from user when the view is overlaying
- Loading branch information
1 parent
91ccba4
commit 81bfd2b
Showing
8 changed files
with
82 additions
and
40 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
shared/src/commonMain/kotlin/com/example/musicapp_kmp/decompose/ChartDetailsComponent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.example.musicapp_kmp.decompose | ||
|
||
import com.arkivanov.essenty.parcelable.Parcelable | ||
import com.arkivanov.essenty.parcelable.Parcelize | ||
import musicapp.chartdetails.ChartDetailsViewModel | ||
import musicapp.network.models.topfiftycharts.Item | ||
|
||
|
||
/** | ||
* Created by abdulbasit on 19/03/2023. | ||
*/ | ||
|
||
interface ChartDetailsComponent { | ||
val viewModel: ChartDetailsViewModel | ||
fun onOutPut(output: Output) | ||
sealed class Output { | ||
data object GoBack : Output() | ||
data class OnPlayAllSelected(val playlist: List<Item>) : Output() | ||
data class OnTrackSelected(val trackId: String, val playlist: List<Item>) : Output() | ||
} | ||
|
||
@Parcelize | ||
sealed interface Input : Parcelable { | ||
|
||
@Parcelize | ||
data class TrackUpdated(val trackId: String) : Input, Parcelable | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters