TikTok for Developers

开发者文档

上次更新时间:2026年10月22日

Screen Capture

Enable or disable the page screenshot capability to control screen capture behavior within your mini drama.

TTMinis.enableCapture(callback)

Enables the page screenshot capability.

Callback parameters

Both enableCapture and disableCapture share the same callback structure:

Field

Type

Description

isSuccess

boolean

Whether the operation succeeded.

error

object

Returned on failure.

Example

TTMinis.enableCapture(function (res) {
  console.log('enableCapture:', res.isSuccess, res.error);
});


TTMinis.disableCapture(callback)

Disables the page screenshot capability.

Callback parameters

Both enableCapture and disableCapture share the same callback structure:

Field

Type

Description

isSuccess

boolean

Whether the operation succeeded.

error

object

Returned on failure.

Example

TTMinis.disableCapture(function (res) {
  console.log('disableCapture:', res.isSuccess, res.error);
});
TikTok for Developers