AudioRoute

音频路由

此枚举定义了音频输出的路由位置。

响应场景

路由描述
SPEAKERPHONE0扬声器,适合外放音乐
EARPIECE1听筒,适合需要保护隐私的通话场景

Entries

Link copied to clipboard

扬声器,使用扬声器播放(即"免提"),扬声器位于手机底部,声音偏大,适合外放音乐。

Link copied to clipboard

听筒,使用听筒播放,听筒位于手机顶部,声音偏小,适合需要保护隐私的通话场景。

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val value: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.