| java.lang.Object | |
| ↳ | android.media.Ringtone |
Ringtone provides a quick method for playing a ringtone, notification, or other similar types of sounds.
For ways of retrieving
Ringtone
objects or to show a ringtone
picker, see
RingtoneManager
.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Gets the stream type where this ringtone will be played.
|
||||||||||
|
|
Returns a human-presentable title for ringtone.
|
||||||||||
|
|
Whether this ringtone is currently playing.
|
||||||||||
|
|
Plays the ringtone.
|
||||||||||
|
|
Sets the stream type where this ringtone will be played.
|
||||||||||
|
|
Stops a playing ringtone.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
Gets the stream type where this ringtone will be played.
AudioManager
.
Returns a human-presentable title for ringtone. Looks in media content provider. If not in either, uses the filename
| context | A context used for querying. |
|---|
Whether this ringtone is currently playing.
Sets the stream type where this ringtone will be played.
| streamType |
The stream, see
AudioManager
.
|
|---|