Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.57 KB

README-zh.md

File metadata and controls

44 lines (33 loc) · 1.57 KB

Cache for Android

License API

3级缓存( 内存, 本地, 网络 ) ——针对任意对象,抽象异步耗时操作,主线程回调,链式调用

Demo

Screenshot

Implementation list

  • FrameCache - 获取本地或网络视频第一帧和时长
  • DurationCache - 获取本地或网络音频时长
  • ImageCache - 获取本地或网络图片

Usage

        FrameCache.with(context).load(url).placeholder(R.color.colorAccent).into(view);
        DurationCache.with(context).load(url).placeholder(0L).into(view);
        ImageCache.with(context).load(url).into(ivImage);
        ...

More usage see Demo

Licence

Copyright 2017 D

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.