getNFormats

fun getNFormats(): <Error class: unknown class>

Returns the number of formats that the @formats object contains.

Note that DMA buffers are a Linux concept, so on other platforms, method@Gdk.DmabufFormats.get_n_formats will always return zero.

Return

the number of formats

Since

4.14