viewSnapshot

fun viewSnapshot(view: View, option: SnapshotOption? = null): Bitmap

View snapshot.

Since

0.5.4

Parameters

view

The View or ViewGroup that needs to get snapshot.

option

If the view is not inflated, you need to specify the size through this parameter.