shouldLoop
TypeScriptget shouldLoop(): Promise<boolean>Swift declarationvar shouldLoop: BoolStores a Boolean indicating whether the playback loops infinitely, until manually stopped or paused.
struct · iOS 18.0+ · SDK 27.1
struct ConfigurationA container for various settings for loading an audio file resource.
get shouldLoop(): Promise<boolean>Swift declarationvar shouldLoop: BoolStores a Boolean indicating whether the playback loops infinitely, until manually stopped or paused.
setShouldLoop(value: boolean): Promise<void>Swift declarationvar shouldLoop: BoolStores a Boolean indicating whether the playback loops infinitely, until manually stopped or paused.
get calibration(): Promise<(AudioResource_Calibration) | null>Swift declarationvar calibration: AudioResource.Calibration?Stores the calibration setting that the system applies to the audio resource, ensuring optimal playback quality.
setCalibration(value?: (AudioResource_Calibration) | null): Promise<void>Swift declarationvar calibration: AudioResource.Calibration?Stores the calibration setting that the system applies to the audio resource, ensuring optimal playback quality.
get mixGroupName(): Promise<(string) | null>Swift declarationvar mixGroupName: String?An arbitrary name that can assigns an audio resource to an audio mix group. See ``AudioMixGroup`` and ``AudioMixGroupsComponent`` for more information.
setMixGroupName(value?: (string) | null): Promise<void>Swift declarationvar mixGroupName: String?An arbitrary name that can assigns an audio resource to an audio mix group. See ``AudioMixGroup`` and ``AudioMixGroupsComponent`` for more information.
get normalization(): Promise<(AudioResource_Normalization) | null>Swift declarationvar normalization: AudioResource.Normalization?Stores the normalization portion of the configuration.
setNormalization(value?: (AudioResource_Normalization) | null): Promise<void>Swift declarationvar normalization: AudioResource.Normalization?Stores the normalization portion of the configuration.
static init(loadingStrategy?: AudioFileResource_LoadingStrategy, shouldLoop?: boolean, shouldRandomizeStartTime?: boolean, normalization?: (AudioResource_Normalization) | null, calibration?: (AudioResource_Calibration) | null, mixGroupName?: (string) | null): Promise<AudioFileResource_Configuration>Swift declarationinit(loadingStrategy: AudioFileResource.LoadingStrategy = .preload, shouldLoop: Bool = false, shouldRandomizeStartTime: Bool = false, normalization: AudioResource.Normalization? = nil, calibration: AudioResource.Calibration? = nil, mixGroupName: String? = nil)Initializes a new audio file resource configuration.
get loadingStrategy(): Promise<AudioFileResource_LoadingStrategy>Swift declarationvar loadingStrategy: AudioFileResource.LoadingStrategyStores the strategy the system uses for handling an audio resource's data before and during playback.
setLoadingStrategy(value: AudioFileResource_LoadingStrategy): Promise<void>Swift declarationvar loadingStrategy: AudioFileResource.LoadingStrategyStores the strategy the system uses for handling an audio resource's data before and during playback.
get shouldRandomizeStartTime(): Promise<boolean>Swift declarationvar shouldRandomizeStartTime: BoolStores a Boolean indicating whether the playback begins from the start of the file, or from a random position. When this property and ``shouldLoop`` are both true, only the first playback iteration begins from a random position.
setShouldRandomizeStartTime(value: boolean): Promise<void>Swift declarationvar shouldRandomizeStartTime: BoolStores a Boolean indicating whether the playback begins from the start of the file, or from a random position. When this property and ``shouldLoop`` are both true, only the first playback iteration begins from a random position.
No declarations were skipped in this snapshot.