object单例
public class MusicPlayerJava {
public static MusicPlayerJava INSTANCE = new MusicPlayerJava();
private MusicPlayerJava(){}
}
class Driver
interface OnExternalDriverMountListener{
fun onMount(driver: Driver)
fun onUnmount(driver: Driver)
}
abstract class Player
object MusicPlayer: Player(), OnExternalDriverMountListener{
override fun onMount(driver: Driver) {
}
override fun onUnmount(driver: Driver) {
}
val state : Int = 0
fun play(url : String){
}
fun stop(){
}
}
当前内容版权归 JackChan1999 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 JackChan1999 .