MetadataRepo
public
final
class
MetadataRepo
extends Object
java.lang.Object
|
↳ |
android.support.text.emoji.MetadataRepo
|
Class to hold the emoji metadata required to process and draw emojis.
Summary
Inherited methods |
From
class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
create
MetadataRepo create (Typeface typeface,
InputStream inputStream)
Construct MetadataRepo from an input stream. The library does not close the given
InputStream, therefore it is caller's responsibility to properly close the stream.
Parameters |
typeface |
Typeface : Typeface to be used to render emojis |
inputStream |
InputStream : InputStream to read emoji metadata from
|
create
MetadataRepo create (Typeface typeface,
ByteBuffer byteBuffer)
Construct MetadataRepo from a byte buffer. The position of the ByteBuffer will change, it is
caller's responsibility to reposition the buffer if required.
Parameters |
typeface |
Typeface : Typeface to be used to render emojis |
byteBuffer |
ByteBuffer : ByteBuffer to read emoji metadata from
|
create
MetadataRepo create (AssetManager assetManager,
String assetPath)
Construct MetadataRepo from an asset.
Parameters |
assetManager |
AssetManager : AssetManager instance |
assetPath |
String : asset manager path of the file that the Typeface and metadata will be
created from
|