Skip to main content

SoundEventDetectorBuilder

Builder for SoundEventDetector.

TypeNameInterface Description
Functionsconstructor()

Functionsbuild(): SoundEventDetector | null

Function: Build the SoundEventDetector. Note that the detector should be built in onInit, otherwise it will return null.

Examples

constructor()

let obj = new APJS.SoundEventDetectorBuilder();

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use SoundEventDetectorBuilder here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies