AudioSessionOperationRestriction enum Null safety

音频会话控制权限

Constants

All → const AudioSessionOperationRestriction

限制 SDK 对 Audio Session 进行任何操作,SDK 将不能再对 Audio Session 进行任何配置。

@JsonValue(1 << 7)
const AudioSessionOperationRestriction(4)
ConfigureSession → const AudioSessionOperationRestriction

SDK 不能更改 Audio Session 的 category,mode,categoryOptions。

@JsonValue(1 << 1)
const AudioSessionOperationRestriction(2)
DeactivateSession → const AudioSessionOperationRestriction

离开某个频道时,SDK 会保持 Audio Session 处于活动状态。

@JsonValue(1 << 2)
const AudioSessionOperationRestriction(3)
None → const AudioSessionOperationRestriction

没有限制,SDK 可以完全控制 Audio Session 操作。

@JsonValue(0)
const AudioSessionOperationRestriction(0)
SetCategory → const AudioSessionOperationRestriction

SDK 不能更改 Audio Session 的 category。

@JsonValue(1)
const AudioSessionOperationRestriction(1)
values → const List<AudioSessionOperationRestriction>

A constant List of the values in this enum, in order of their declaration.

const List<AudioSessionOperationRestriction>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited