object MusicPlayer extends Observable
Manages application sounds.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MusicPlayer
- Observable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val MaxVolume: Int
- val MinVolume: Int
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
changeVolume(volume: Double): Unit
Change music and audio effects volume.
Change music and audio effects volume.
- volume
double value for volume, range 0 to 1
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getMediaPlayerStatus: Option[Status]
Return current media player status
Return current media player status
- returns
Option of MediaPlayer.Status
-
def
getVolume: Double
Get volume.
Get volume.
- returns
application volume
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pause(): Unit
Pause the music.
-
def
play(sound: SoundsType.Value): Unit
Play a sound.
Play a sound.
- sound
the sound to play
-
def
resume(): Unit
Resume the music if it is in pause state.
-
def
setController(controller: Controller): Unit
Set controller.
-
def
subscribe(observer: SettingsEventObserver): Unit
- Definition Classes
- MusicPlayer → Observable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- implicit val who: String