pop_filtered


Description:

public Message? pop_filtered (MessageType types)

Gets a message matching type from the bus.

Will discard all messages on the bus that do not match type and that have been posted before the first message that does match type. If there is no message matching type on the bus, all messages will be discarded. It is not possible to use message enums beyond EXTENDED in the events mask.

Parameters:

this

a Bus to pop

types

message types to take into account

Returns:

the next Message matching type that is on the bus, or null if the bus is empty or there is no message matching type.




2022 vala-language.org