pub enum ContentType {
Speech = 1,
Music = 2,
Movie = 3,
Sonification = 4,
}
Expand description
The ContentType attribute describes “what” you are playing.
It expresses the general category of the content. This information is optional.
But in case it is known (for instance Movie
for a
movie streaming service or Speech
for
an audio book application) this information might be used by the audio framework to
enforce audio focus.
Note that these match the equivalent values in android.media.AudioAttributes in the Android Java API.
Added in API level 28.
Variants§
Speech = 1
Use this for spoken voice, audio books, etcetera.
Music = 2
Use this for pre-recorded or live music.
Movie = 3
Use this for a movie or video soundtrack.
Sonification = 4
Use this for sound is designed to accompany a user action, such as a click or beep sound made when the user presses a button.
Trait Implementations§
Source§impl Clone for ContentType
impl Clone for ContentType
Source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContentType
impl Debug for ContentType
Source§impl PartialEq for ContentType
impl PartialEq for ContentType
impl Copy for ContentType
impl Eq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more