Table of Contents

Class ContentProvider

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

Methods

ContentChanged(nint)

Calls native method gdk_content_provider_content_changed.

public static extern void ContentChanged(nint provider)

Parameters

provider nint

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 nint NewForBytes(NonNullableUtf8StringHandle mimeType, BytesHandle bytes)

Parameters

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

bytes BytesHandle

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: Full Nullable: False

NewForValue(ValueHandle)

Calls native constructor gdk_content_provider_new_for_value.

public static extern nint NewForValue(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: Full Nullable: False

NewUnion(nint[], nuint)

Calls native constructor gdk_content_provider_new_union.

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

Parameters

providers nint[]

Transfer ownership: Full Nullable: True

nProviders nuint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: Full Nullable: False

RefFormats(nint)

Calls native method gdk_content_provider_ref_formats.

public static extern ContentFormatsOwnedHandle RefFormats(nint provider)

Parameters

provider nint

Transfer ownership: None Nullable: False

Returns

ContentFormatsOwnedHandle

Transfer ownership: Full Nullable: False

RefStorableFormats(nint)

Calls native method gdk_content_provider_ref_storable_formats.

public static extern ContentFormatsOwnedHandle RefStorableFormats(nint provider)

Parameters

provider nint

Transfer ownership: None Nullable: False

Returns

ContentFormatsOwnedHandle

Transfer ownership: Full Nullable: False

WriteMimeTypeAsync(nint, NonNullableUtf8StringHandle, nint, int, nint, AsyncReadyCallback, nint)

Calls native method gdk_content_provider_write_mime_type_async.

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

Parameters

provider nint

Transfer ownership: None Nullable: False

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

stream nint

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

WriteMimeTypeFinish(nint, nint, out ErrorOwnedHandle)

Calls native method gdk_content_provider_write_mime_type_finish.

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

Parameters

provider nint

Transfer ownership: None Nullable: False

result nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False