提交 e697276d 编写于 作者: M mali

Add the return value of camera document interface getTimestamp

Signed-off-by: Nmali <mali81@huawei.com>
上级 0e2d67fe
......@@ -3758,12 +3758,12 @@ getTimestamp(callback: AsyncCallback<number\>): void
**示例:**
```js
metadataObject.getTimestamp((err) => {
metadataObject.getTimestamp((err,timestamp) => {
if (err) {
console.error(`Failed to get timestamp. ${err.message}`);
return;
}
console.log('Callback returned with timestamp getted.');
console.log('Callback returned with timestamp getted timestamp : ${timestamp}');
})
```
......@@ -3784,8 +3784,8 @@ getTimestamp(): Promise<number\>
**示例:**
```js
metadataObject.getTimestamp().then(() => {
console.log('Callback returned with timestamp getted.');
metadataObject.getTimestamp().then((timestamp) => {
console.log('Callback returned with timestamp getted timestamp : ${timestamp}');
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册