-
- All Implemented Interfaces:
-
com.backbase.deferredresources.DeferredTypeface
public final class DeferredTypeface.Asset implements DeferredTypeface
-
-
Constructor Summary
Constructors Constructor Description DeferredTypeface.Asset(String path)
-
Method Summary
Modifier and Type Method Description Typefaceresolve(Context context)Resolve the asset path to a typeface with the given context's assets. Unitresolve(Context context, ResourcesCompat.FontCallback fontCallback, Handler handler)Resolve the asset path to a typeface with the given context's assets and provide it asynchronously to fontCallback. -
-
Constructor Detail
-
DeferredTypeface.Asset
DeferredTypeface.Asset(String path)
-
-
Method Detail
-
resolve
Typeface resolve(Context context)
Resolve the asset path to a typeface with the given context's assets.
-
resolve
Unit resolve(Context context, ResourcesCompat.FontCallback fontCallback, Handler handler)
Resolve the asset path to a typeface with the given context's assets and provide it asynchronously to fontCallback. If path is an invalid path, FAIL_REASON_FONT_NOT_FOUND is sent to the callback.
-
-
-
-