Upravit

Sdílet prostřednictvím


INSDiscardableContent Interface

Definition

Interface for a class that can save memory by discarding some of its subcomponents when they are not in use.

[Foundation.Protocol(Name="NSDiscardableContent", WrapperType=typeof(Foundation.NSDiscardableContentWrapper))]
public interface INSDiscardableContent : IDisposable, ObjCRuntime.INativeObject
type INSDiscardableContent = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
IsContentDiscarded

Gets a Boolean value that tells whether the content has been discarded.

Methods

BeginContentAccess()

Requests access to the content, and returns true if the contents are available and were successfully accessed. (Otherwise, returns false.)

DiscardContentIfPossible()

Discards the content if it is not being accessed.

EndContentAccess()

Indicates that access to the content is no longer needed.

Applies to