TikTok for Developers

Developer Docs

Last updated October 22, 2026

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