Gio.Volume.prototype.get_identifier

function get_identifier(kind: String): String {
    // Gjs wrapper for g_volume_get_identifier()
}
  

Gets the identifier of the given kind for volume. See the [introduction][volume-identifier] for more information about volume identifiers.

kind

the kind of identifier to return

Returns

a newly allocated string containing the requested identfier, or null if the Gio.Volume doesn't have this kind of identifier