Gst.Event.prototype.has_name

function has_name(name:String):Boolean {
    // Gjs wrapper for gst_event_has_name()
}

Checks if event has the given name. This function is usually used to check the name of a custom event.

name

name to check

Returns

true if name matches the name of the event structure.