上次更新时间: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 |
|
| Whether the operation succeeded. |
|
| 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 |
|
| Whether the operation succeeded. |
|
| Returned on failure. |
Example
TTMinis.disableCapture(function (res) {
console.log('disableCapture:', res.isSuccess, res.error);
});