Skip to main content

KeywordDetectorBuilder

Keyword detector builder.

TypeNameInterface Description
Functionsbuild(): KeywordDetector | null

• Function: Build the KeywordDetector. Note that the detector should be built in OnInit, otherwise it will return null.

Examples​

build(): KeywordDetector | null​

const detector = builder.build();

Use Case​

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