refactor(android): migrate BecomingNoisyListener interface to Kotlin (#3996)

* Rename .java to .kt

* refactor(android): migrate BecomingNoisyListener interface to Kotlin

* remove: java file (AudioBecomingNoisyReceiver.java)
This commit is contained in:
Seyed Mostafa Hasani 2024-07-18 10:41:07 +03:30 committed by GitHub
parent 2f70c02cdc
commit 76d5e93c17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 13 deletions

View File

@ -1,13 +0,0 @@
package com.brentvatne.receiver;
public interface BecomingNoisyListener {
BecomingNoisyListener NO_OP = new BecomingNoisyListener() {
@Override public void onAudioBecomingNoisy() {
// NO_OP
}
};
void onAudioBecomingNoisy();
}

View File

@ -0,0 +1,12 @@
package com.brentvatne.receiver
interface BecomingNoisyListener {
companion object {
val NO_OP = object : BecomingNoisyListener {
override fun onAudioBecomingNoisy() {
// NO_OP
}
}
}
fun onAudioBecomingNoisy()
}