|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.support.wearable.view.ImageReference
public class ImageReference
A reference to an image. This may be only a lightweight reference, or may contain a reference to a Bitmap or other image data if the data is already available in memory.
| Field Summary | |
|---|---|
static ImageReference |
NONE
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
static ImageReference |
forBitmap(Bitmap bitmap)
Creates an instance referencing a Bitmap. |
static ImageReference |
forDrawable(int drawableResId)
Creates an instance referencing a drawable to be loaded by id. |
static ImageReference |
forImageUri(Uri uri)
Creates an instance referencing an image to be loaded from the network. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ImageReference NONE
| Method Detail |
|---|
public static ImageReference forImageUri(Uri uri)
uri - an image of any type supported by BitmapFactorypublic static ImageReference forDrawable(int drawableResId)
drawableResId - a resource id for a drawablepublic static ImageReference forBitmap(Bitmap bitmap)
bitmap - the bitmap to referencepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||