RecorderManager.onPause(function listener)
Introduction
Listen for recording pause events.
Usage Restrictions
Supported from 4.0.0
or higher version of the basic library.
Parameters
function listener
Listener function to be added for recording pause events.
Sample Code
// pages/index/index.js
Page({
onPause() {
const recorderManager = dlt.getRecorderManager();
recorderManager.onPause(() => {
console.log("Recording paused");
});
recorderManager.pause();
},
});