Companion

Functions

Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of Source

Link copied to clipboard
fun remove(tag: <Error class: unknown class>): Boolean

Removes the source with the given ID from the default main context. You must use method@GLib.Source.destroy for sources added to a non-default main context.

Link copied to clipboard
fun removeByFuncsUserData(funcs: SourceFuncs, userData: <Error class: unknown class>? = null): Boolean

Removes a source from the default main loop context given the source functions and user data. If multiple sources exist with the same source functions and user data, only one will be destroyed.

Link copied to clipboard
fun removeByUserData(userData: <Error class: unknown class>? = null): Boolean

Removes a source from the default main loop context given the user data for the callback. If multiple sources exist with the same user data, only one will be destroyed.

Link copied to clipboard
fun setNameById(tag: <Error class: unknown class>, name: String)

Sets the name of a source using its ID.