## uni.canvasToTempFilePath(options, componentInstance) @canvastotempfilepath

<!-- UTSAPIJSON.canvasToTempFilePath.description -->

<!-- UTSAPIJSON.canvasToTempFilePath.compatibility -->

* 截图或海报需求，app平台view直接提供截图API，[takesnapshot](../dom/unielement.html#takesnapshot)。

<!-- UTSAPIJSON.canvasToTempFilePath.param -->

<!-- UTSAPIJSON.canvasToTempFilePath.returnValue -->

<!-- UTSAPIJSON.canvasToTempFilePath.tutorial -->

<!-- UTSAPIJSON.general_type.name -->

<!-- UTSAPIJSON.general_type.param -->
