Schnittstelle Vfs.OnVfsFileLookupFunc

Umschließende Klasse:
Vfs
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface Vfs.OnVfsFileLookupFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    onVfsFileLookupFunc(CallbackHandler __self, Vfs vfs, Str identifier, Pointer user_data)
    This function type is used by g_vfs_register_uri_scheme() to make it
    possible for a client to associate a URI scheme to a different #GFile
    implementation.
  • Methodendetails

    • onVfsFileLookupFunc

      File onVfsFileLookupFunc(CallbackHandler __self, @Nonnull Vfs vfs, @Nonnull Str identifier, @Nullable Pointer user_data)
      This function type is used by g_vfs_register_uri_scheme() to make it
      possible for a client to associate a URI scheme to a different #GFile
      implementation.

      The client should return a reference to the new file that has been
      created for @uri, or %NULL to continue with the default implementation.
      Parameter:
      vfs - a #GVfs
      identifier - the identifier to look up a #GFile for. This can either be a URI or a parse name as returned by g_file_get_parse_name()
      user_data - user data passed to the function, or %NULL
      Gibt zurück:
      a #GFile for @identifier.