Android.Util.LruCache.TrimToSize Method
Remove the eldest entries until the total of remaining entries is at or below the requested size.

Syntax

[Android.Runtime.Register("trimToSize", "(I)V", "GetTrimToSize_IHandler")]
public virtual void TrimToSize (int maxSize)

Parameters

maxSize
the maximum size of the cache before returning. May be -1 to evict even 0-sized elements.

Remarks

Remove the eldest entries until the total of remaining entries is at or below the requested size.

[Android Documentation]

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17