Skip to content

Commit

Permalink
//fbandroid/libraries/fresco/drawee-backends/drawee-pipeline/src/main…
Browse files Browse the repository at this point in the history
…/java/com/facebook/drawee/backends/pipeline:imageintdefs

Reviewed By: oprisnik

Differential Revision: D65497407

fbshipit-source-id: 93b05aa91d7f78deaeb8f063a29938ef3683b9db
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Nov 5, 2024
1 parent 3ea6d5f commit 9b6ad0b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 44 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.drawee.backends.pipeline.info

import androidx.annotation.IntDef

/**
* Image origin that indicates whether an image has been loaded from cache, network or other source.
*/
@Retention(AnnotationRetention.SOURCE)
@IntDef(
ImageOrigin.UNKNOWN,
ImageOrigin.NETWORK,
ImageOrigin.DISK,
ImageOrigin.MEMORY_ENCODED,
ImageOrigin.MEMORY_BITMAP,
ImageOrigin.MEMORY_BITMAP_SHORTCUT,
ImageOrigin.LOCAL)
annotation class ImageOrigin {
companion object {
const val UNKNOWN: Int = 1
const val NETWORK: Int = 2
const val DISK: Int = 3
const val MEMORY_ENCODED: Int = 4
const val MEMORY_BITMAP: Int = 5
const val MEMORY_BITMAP_SHORTCUT: Int = 6
const val LOCAL: Int = 7
}
}

0 comments on commit 9b6ad0b

Please sign in to comment.