diff --git a/graphic/graphic_2d/native_drawing/drawing_canvas.h b/graphic/graphic_2d/native_drawing/drawing_canvas.h
index c9ac9b2a501434cfe317421d8a577addff522ed6..10824c04c8f0eebe2111022d16d5d3b082d7bd0c 100644
--- a/graphic/graphic_2d/native_drawing/drawing_canvas.h
+++ b/graphic/graphic_2d/native_drawing/drawing_canvas.h
@@ -917,6 +917,20 @@ OH_Drawing_ErrorCode OH_Drawing_CanvasGetImageInfo(OH_Drawing_Canvas* canvas, OH
*/
OH_Drawing_ErrorCode OH_Drawing_CanvasDrawRecordCmd(OH_Drawing_Canvas* canvas, OH_Drawing_RecordCmd* recordCmd);
+/**
+ * @brief Replay drawing command.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param canvas Indicates the pointer to an OH_Drawing_Canvas object.
+ * @param recordCmd Indicates the pointer to an OH_Drawing_RecordCmd object.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or recordCmd is nullptr.
+ * @since 20
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_CanvasDrawRecordCmdNesting(OH_Drawing_Canvas* canvas, OH_Drawing_RecordCmd* recordCmd);
+
/**
* @brief Checks if the path has been cut off.
*
diff --git a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
index 9218ad279c10fb39c77bd175551d3a479c713686..1c419cf3937803c52096422c3f485b78e02ebfad 100644
--- a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
+++ b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
@@ -1866,6 +1866,10 @@
"first_introduced": "20",
"name": "OH_Drawing_SetTypographyTextTrailingSpaceOptimized"
},
+ {
+ "first_introduced": "20",
+ "name":"OH_Drawing_CanvasDrawRecordCmdNesting"
+ },
{
"first_introduced": "20",
"name": "OH_Drawing_SetTextStyleBadgeType"