implementation 'com.qcloud.cos:avif:1.0.0'
build.gradle file to set the .so library frameworks that are supported.defaultConfig {ndk {// Set the .so library frameworks that are supportedabiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'}}
implementation 'com.qcloud.cos:cloud-infinite:1.2.1'
// Instantiate `CloudInfinite` to build an image request link;CloudInfinite cloudInfinite = new CloudInfinite();// Perform transformation according to the basic feature options of CI you select;CITransformation transform = new CITransformation();transform.format(CIImageFormat.AVIF, CIImageLoadOptions.LoadTypeUrlFooter);// Build the image `CIImageLoadRequest`CIImageLoadRequest request = cloudInfinite.requestWithBaseUrlSync(url, transform);
// Load AVIF images in `Assets`AVIFImageLoader.displayWithAssets(imageview, assetsName);// Load AVIF images in `Resource`AVIFImageLoader.displayWithResource(imageview, R.drawable.avif);// Load AVIF images in local filesAVIFImageLoader.displayWithFileUri(imageview, fileUri);
Feedback