Class ContentProvider
- Namespace
- Gdk
- Assembly
- Gdk-4.0.dll
public class ContentProvider : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
ContentProvider
- Implements
- Inherited Members
Constructors
ContentProvider(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public ContentProvider(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ContentProvider(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ContentProvider(CreationData data)
Parameters
dataCreationData
ContentProvider(ContentProviderHandle)
protected ContentProvider(ContentProviderHandle handle)
Parameters
handleContentProviderHandle
Fields
ContentChangedSignal
Signal Descriptor for OnContentChanged.
public static readonly Signal<ContentProvider> ContentChangedSignal
Field Value
FormatsPropertyDefinition
public static readonly Property<ContentFormats, ContentProvider> FormatsPropertyDefinition
Field Value
StorableFormatsPropertyDefinition
public static readonly Property<ContentFormats, ContentProvider> StorableFormatsPropertyDefinition
Field Value
Properties
Formats
public ContentFormats Formats { get; }
Property Value
StorableFormats
public ContentFormats StorableFormats { get; }
Property Value
Methods
ContentChanged()
public void ContentChanged()
GetGType()
public static Type GetGType()
Returns
GetValue(out Value)
public bool GetValue(out Value value)
Parameters
valueValue
Returns
NewForBytes(string, Bytes)
public static ContentProvider NewForBytes(string mimeType, Bytes bytes)
Parameters
Returns
NewForValue(Value)
public static ContentProvider NewForValue(Value value)
Parameters
valueValue
Returns
NewFromPointer(nint, bool)
Creates a new managed ContentProvider instance for a given pointer.
public static ContentProvider NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ContentProvider and sets the properties specified by the construct arguments.
public static ContentProvider NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
RefFormats()
public ContentFormats RefFormats()
Returns
RefStorableFormats()
public ContentFormats RefStorableFormats()
Returns
WriteMimeTypeFinish(AsyncResult)
public bool WriteMimeTypeFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Events
OnContentChanged
public event SignalHandler<ContentProvider> OnContentChanged