Adjacent Files

Project Info

. > app > src > main > java > james > alarmio > data > SoundData.java

play

Type: public void

Plays the sound. This will pass the SoundData instance to the provided Alarmio class, which will store the currently playing sound until it is stopped or cancelled.

Parameter Name Description
alarmio The active Application instance.

stop

Type: public void

Stops the currently playing alarm. This only differentiates between sounds if the sound is a ringtone; if it is a stream, then all streams will be stopped, regardless of whether this sound is in fact the currently playing stream or not.

Parameter Name Description
alarmio The active Application instance.

preview

Type: public void

Preview the sound on the “media” volume channel.

Parameter Name Description
alarmio The active Application instance.

isPlaying

Type: public boolean

Decide whether the sound is currently playing or not.

Parameter Name Description
alarmio The active Application instance.

Returned Value: True if “this” sound is playing.

toString

Type: @Override public String

Returns an identifier string that can be used to recreate this SoundDate class.

Returned Value: A non-null identifier string.

fromString

Type: @Nullable public static SoundData

Construct a new instance of SoundData from an identifier string which was (hopefully) created by toString.

Parameter Name Description
string A non-null identifier string.

Returned Value: A recreated SoundData instance.

equals

Type: @Override public boolean

Decide if two SoundDatas are equal.

Parameter Name Description
obj The object to compare to.

Returned Value: True if the SoundDatas contain the same sound.

This site may do shady things with cookies and stuff because it's evil. Please don't read my privacy policy. close