@Implements(value=android.graphics.fonts.Font.Builder.class, minSdk=29) public class ShadowFontBuilder extends Object
Font.Builder
Constructor | Description |
---|---|
ShadowFontBuilder() |
Modifier and Type | Method | Description |
---|---|---|
protected static ByteBuffer |
createBuffer(AssetManager am,
String path,
boolean isAsset,
int cookie) |
Re-implement to avoid call to DirectByteBuffer#array, which is not supported on JDK
|
protected static ByteBuffer |
nGetAssetBuffer(long nativeAsset) |
|
protected static long |
nGetNativeAsset(AssetManager assetMgr,
String path,
boolean isAsset,
int cookie) |
|
protected static long |
nGetReleaseNativeAssetFunc() |
@Implementation(maxSdk=29) protected static long nGetNativeAsset(AssetManager assetMgr, String path, boolean isAsset, int cookie)
@Implementation(maxSdk=29) protected static ByteBuffer nGetAssetBuffer(long nativeAsset)
@Implementation(maxSdk=29) protected static long nGetReleaseNativeAssetFunc()
@Implementation(minSdk=30) protected static ByteBuffer createBuffer(AssetManager am, String path, boolean isAsset, int cookie) throws IOException
IOException