Skip to main content

EventType

Event type

TypeNameInterface Description
EnumRecordEnd

• Function: Record end event. The event args are empty.

EnumRecordStart

• Function: Record start event. The event args are empty.

EnumTouch

• Function: Touch event. The event args are [TouchData].

Examples​

RecordEnd​

let value = APJS.EventType.RecordEnd;

RecordStart​

let value = APJS.EventType.RecordStart;

Touch​

let value = APJS.EventType.Touch;

Use Case​

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