#[repr(transparent)]pub struct OH_AudioStream_Usage(pub c_uint);Expand description
Define the audio stream usage. Audio stream usage is used to describe what work scenario the current stream is used for.
Available since API-level: 10
Tuple Fields§
§0: c_uintImplementations§
Source§impl OH_AudioStream_Usage
impl OH_AudioStream_Usage
Sourcepub const AUDIOSTREAM_USAGE_UNKNOWN: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_UNKNOWN: OH_AudioStream_Usage
Unknown usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_MUSIC: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_MUSIC: OH_AudioStream_Usage
Music usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_VOICE_COMMUNICATION: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_VOICE_COMMUNICATION: OH_AudioStream_Usage
Voice communication usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_VOICE_ASSISTANT: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_VOICE_ASSISTANT: OH_AudioStream_Usage
Voice assistant usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_ALARM: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_ALARM: OH_AudioStream_Usage
Alarm usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_VOICE_MESSAGE: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_VOICE_MESSAGE: OH_AudioStream_Usage
Voice message usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_RINGTONE: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_RINGTONE: OH_AudioStream_Usage
Ringtone usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_NOTIFICATION: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_NOTIFICATION: OH_AudioStream_Usage
Notification usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_ACCESSIBILITY: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_ACCESSIBILITY: OH_AudioStream_Usage
Accessibility usage, such as screen reader.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_MOVIE: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_MOVIE: OH_AudioStream_Usage
Movie or video usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_GAME: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_GAME: OH_AudioStream_Usage
Game sound effect usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_AUDIOBOOK: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_AUDIOBOOK: OH_AudioStream_Usage
Audiobook usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_NAVIGATION: OH_AudioStream_Usage
pub const AUDIOSTREAM_USAGE_NAVIGATION: OH_AudioStream_Usage
Navigation usage.
Available since API-level: 10
Sourcepub const AUDIOSTREAM_USAGE_VIDEO_COMMUNICATION: OH_AudioStream_Usage
Available on crate feature api-12 only.
pub const AUDIOSTREAM_USAGE_VIDEO_COMMUNICATION: OH_AudioStream_Usage
api-12 only.Video call usage.
Available since API-level: 12
Trait Implementations§
Source§impl Clone for OH_AudioStream_Usage
impl Clone for OH_AudioStream_Usage
Source§fn clone(&self) -> OH_AudioStream_Usage
fn clone(&self) -> OH_AudioStream_Usage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OH_AudioStream_Usage
impl Debug for OH_AudioStream_Usage
Source§impl Hash for OH_AudioStream_Usage
impl Hash for OH_AudioStream_Usage
Source§impl PartialEq for OH_AudioStream_Usage
impl PartialEq for OH_AudioStream_Usage
Source§fn eq(&self, other: &OH_AudioStream_Usage) -> bool
fn eq(&self, other: &OH_AudioStream_Usage) -> bool
self and other values to be equal, and is used by ==.