We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2676eed commit 6491f1eCopy full SHA for 6491f1e
1 file changed
audioControllerLibrary/src/main/java/com/example/audiocontrollerlibrary/AudioController.kt
@@ -102,16 +102,27 @@ class AudioController @JvmOverloads constructor(
102
return "%02d:%02d:%02d".format(hour, minute, second)
103
}
104
105
+ /**
106
+ * Sets the audio file to play.
107
+ */
108
fun setAudioSource(filepath: String) {
109
AudioPlayer.ready(filepath)
110
111
112
113
+ * Sets the background color for the layout.
114
115
fun setLayoutBackgroundColor(color: Int) {
116
binding.root.setBackgroundColor(color)
117
118
119
+ /*
120
121
+ * Sets the text color for the timestamps.
122
123
fun setTextColor(color: Int) {
124
binding.timeStamp1.setTextColor(color)
125
binding.timeStamp2.setTextColor(color)
126
127
128
0 commit comments