### Interface

# Nautilus InfoProvider

#### Description [src]

    interface Nautilus.InfoProvider : GObject.Object

Interface to provide additional information about files

`NautilusInfoProvider` allows extension to provide additional information about files. When `nautilus_info_provider_update_file_info()` is called by the application, extensions will know that it’s time to add extra information to the provided `NautilusFileInfo`.

#### Prerequisite

In order to implement InfoProvider, your type must inherit from`GObject`.

#### Functions

###### nautilus_info_provider_update_complete_invoke

Complete an async file info update.

#### Instance methods

###### nautilus_info_provider_cancel_update

Called when the Nautilus application has canceled an update.

###### nautilus_info_provider_update_file_info

Called when the Nautilus application is requesting updated file information.

#### Interface structure

    struct NautilusInfoProviderInterface {
      GTypeInterface g_iface;
      NautilusOperationResult (* update_file_info) (
        NautilusInfoProvider* provider,
        NautilusFileInfo* file,
        GClosure* update_complete,
        NautilusOperationHandle** handle
      );
      void (* cancel_update) (
        NautilusInfoProvider* provider,
        NautilusOperationHandle* handle
      );

    }

No description available.

###### Interface members

`g_iface`

    GTypeInterface

| No description available.

`update_file_info`

    NautilusOperationResult (* update_file_info) (
        NautilusInfoProvider* provider,
        NautilusFileInfo* file,
        GClosure* update_complete,
        NautilusOperationHandle** handle
      )

| No description available.

`cancel_update`

    void (* cancel_update) (
        NautilusInfoProvider* provider,
        NautilusOperationHandle* handle
      )

| No description available.

#### Virtual methods

###### Nautilus.InfoProvider.cancel_update

Called when the Nautilus application has canceled an update.

###### Nautilus.InfoProvider.update_file_info

Called when the Nautilus application is requesting updated file information.