Ejemplo n.º 1
0
        void AndroidCache_OnEntryRemoved(object sender, EntryRemovedEventArgs <Java.Lang.Object> e)
        {
            lock (_monitor)
            {
                _keysCache.Remove(e.Key);
            }

            OnEntryRemoved(e.Evicted, e.Key, e.Value as TValue);
        }
        void OnEntryRemovedFromReusePool(object sender, EntryRemovedEventArgs <TValue> e)
        {
            ProcessRemoval(e.Value, e.Evicted);

            if (_verboseLogging && e.Evicted)
            {
                log?.Debug("[MEMORY_CACHE] Evicted image from reuse pool " + e.Key);
            }
        }
Ejemplo n.º 3
0
        private void OnEntryRemovedFromReusePool(object sender, EntryRemovedEventArgs <TValue> e)
        {
            ProcessRemoval(e.Value, e.Evicted);

            if (e.Value is ISelfDisposingAnimatedBitmapDrawable)
            {
                Java.Lang.JavaSystem.Gc();
            }

            if (_verboseLogging && e.Evicted)
            {
                _log?.Debug("[MEMORY_CACHE] Evicted image from reuse pool " + e.Key);
            }
        }
Ejemplo n.º 4
0
 private void OnEntryRemovedFromReusePool(object sender, EntryRemovedEventArgs <string, ISelfDisposingBitmapDrawable> e)
 {
     ProcessRemoval(e.OldValue, e.Evicted);
 }