Table of Contents

Class ContentProvider

Namespace
Gdk.Internal
Assembly
Gdk-4.0.dll
public class ContentProvider
Inheritance
ContentProvider
Inherited Members

Methods

ContentChanged(IntPtr)

Calls native method gdk_content_provider_content_changed.

public static extern void ContentChanged(IntPtr provider)

Parameters

provider IntPtr

Transfer ownership: None Nullable: False

GetGType()

Calls native function gdk_content_provider_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

NewForBytes(NonNullableUtf8StringHandle, BytesHandle)

Calls native constructor gdk_content_provider_new_for_bytes.

public static extern IntPtr NewForBytes(NonNullableUtf8StringHandle mimeType, BytesHandle bytes)

Parameters

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

bytes BytesHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewForValue(ValueHandle)

Calls native constructor gdk_content_provider_new_for_value.

public static extern IntPtr NewForValue(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewUnion(IntPtr[], nuint)

Calls native constructor gdk_content_provider_new_union.

public static extern IntPtr NewUnion(IntPtr[] providers, nuint nProviders)

Parameters

providers IntPtr[]

Transfer ownership: Full Nullable: True

nProviders nuint

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

RefFormats(IntPtr)

Calls native method gdk_content_provider_ref_formats.

public static extern ContentFormatsOwnedHandle RefFormats(IntPtr provider)

Parameters

provider IntPtr

Transfer ownership: None Nullable: False

Returns

ContentFormatsOwnedHandle

Transfer ownership: Full Nullable: False

RefStorableFormats(IntPtr)

Calls native method gdk_content_provider_ref_storable_formats.

public static extern ContentFormatsOwnedHandle RefStorableFormats(IntPtr provider)

Parameters

provider IntPtr

Transfer ownership: None Nullable: False

Returns

ContentFormatsOwnedHandle

Transfer ownership: Full Nullable: False

WriteMimeTypeAsync(IntPtr, NonNullableUtf8StringHandle, IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gdk_content_provider_write_mime_type_async.

public static extern void WriteMimeTypeAsync(IntPtr provider, NonNullableUtf8StringHandle mimeType, IntPtr stream, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

provider IntPtr

Transfer ownership: None Nullable: False

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

stream IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

WriteMimeTypeFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gdk_content_provider_write_mime_type_finish.

public static extern bool WriteMimeTypeFinish(IntPtr provider, IntPtr result, out ErrorOwnedHandle error)

Parameters

provider IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False