finish Recording As Picture
Signal that the caller is done recording. This invalidates the canvas returned by .beginRecording/.getRecordingCanvas.
The returned picture is immutable. If during recording drawables were added to the canvas, these will have been "drawn" into a recording canvas, so that this resulting picture will reflect their current state, but will not contain a live reference to the drawables themselves.
Signal that the caller is done recording, and update the cull rect to use for bounding box hierarchy (BBH) generation. The behavior is the same as calling .finishRecordingAsPicture, except that this method updates the cull rect initially passed into .beginRecording.
Return
the picture containing the recorded content.
Parameters
the new culling rectangle to use as the overall bound for BBH generation and subsequent culling operations.
Finalizes the recording of the drawing commands and creates an immutable picture object that encapsulates the recorded content. The cull rect provided defines the boundaries for the recorded content and can be used for bounding box hierarchy (BBH) generation and subsequent culling operations. After this call, the canvas returned by any beginRecording or getRecordingCanvas method becomes invalid.
Return
An immutable Picture object that contains the recorded drawing commands.
Parameters
The left side of the cull rect defining the visible bounds of the recording. Any drawing outside this boundary may or may not be included in the result.
The top side of the cull rect defining the visible bounds of the recording. Any drawing outside this boundary may or may not be included in the result.
The right side of the cull rect defining the visible bounds of the recording. Any drawing outside this boundary may or may not be included in the result.
The bottom side of the cull rect defining the visible bounds of the recording. Any drawing outside this boundary may or may not be included in the result.