public abstract class AvatarFeature
extends java.lang.Object
ContactConnectorManager.ContactConnectorHandler
Constructor and Description |
---|
AvatarFeature() |
Modifier and Type | Method and Description |
---|---|
abstract android.graphics.Bitmap |
getAvatar()
Get the avatar image as bitmap
|
abstract byte[] |
getAvatarBytes()
Get the avatar image bytes
|
abstract java.lang.String |
getConnectorType()
Get the associated comms connector type
|
abstract java.lang.String |
getHash()
Get the avatar hash
|
abstract boolean |
isValid()
Validate the feature instance
|
static void |
openAvatar(AvatarFeature avatar,
PointMapItem item,
java.lang.String alternateTag)
Display the avatar in the ATAK image viewer
|
java.io.File |
saveFile(java.lang.String filename)
Store VCard avatar on file system
Currently saves to atak/tmp
Re-use existing avatar file if it exists and has same hash
|
public abstract boolean isValid()
public abstract android.graphics.Bitmap getAvatar()
public abstract byte[] getAvatarBytes()
public abstract java.lang.String getHash()
public abstract java.lang.String getConnectorType()
public java.io.File saveFile(java.lang.String filename)
filename
- the name of the file to save topublic static void openAvatar(AvatarFeature avatar, PointMapItem item, java.lang.String alternateTag)
avatar
- the avatar feature to displayitem
- the point map item to associatealternateTag
- the alternativeTag in case it cannot be shown.