can_process


Description:

public abstract bool can_process (Source source)

Checks whether the this can be used with the given source.

The default implementation checks whether the source has an SourceAuthentication extension and when its method matches get_name , then it automatically returns true. Contrary, when the source contains GNOME Online Accounts or Ubuntu Online Accounts extension, then it returns false.

The default implementation is tried always as the first and when it fails, then the descendant's implementation is called.

Parameters:

this

an OAuth2Service

source

an Source

Returns:

Whether the this can be used for the given source




2022 vala-language.org