IReferenceTrackerHost interface (microsoft.ui.xaml.hosting.referencetracker.h)
Defines an interface that provides the global services used by the garbage collection (GC) system used by the XAML framework.
Inheritance
The IReferenceTrackerHost interface inherits from the IUnknown interface.
Methods
The IReferenceTrackerHost interface has these methods.
IReferenceTrackerHost::AddMemoryPressure Informs the host of increased memory allocations since the last notification. |
IReferenceTrackerHost::DisconnectUnusedReferenceSources Requests that the host perform garbage collection and remove all unnecessary reference sources. |
IReferenceTrackerHost::GetTrackerTarget Requests the host provide a reference tracker target that references a reference tracker source. This tracker target then controls the lifetime of the tracker source. |
IReferenceTrackerHost::NotifyEndOfReferenceTrackingOnThread Notifies the host that reference tracking is no longer available on the calling thread; XAML calls this when the FrameworkView is uninitialized. |
IReferenceTrackerHost::ReleaseDisconnectedReferenceSources Requests that the host call IUnknown::Release on any reference tracker objects that have been disconnected by a reference source. |
IReferenceTrackerHost::RemoveMemoryPressure Informs the host of reduced memory allocations since the last notification. |
Remarks
An implementation of this interface must be registered with the XAML framework by passing it to the SetReferenceTrackerHost method.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 (with Windows App SDK 0.5 or later) |
Header | microsoft.ui.xaml.hosting.referencetracker.h |