Class ContentProvider
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
IntPtrTransfer 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
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
bytes
BytesHandleTransfer 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
ValueHandleTransfer 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
nuintTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
mimeType
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
stream
IntPtrTransfer ownership: None Nullable: False
ioPriority
intTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False