| java.lang.Object | |||
| ↳ | android.os.AsyncTask<Params, Progress, Result> | ||
| ↳ | com.pdftron.pdf.utils.CustomAsyncTask<Params, Progress, Result> | ||
| ↳ | com.pdftron.pdf.asynctask.LoadFontAsyncTask | ||
Async Task for loading fonts in system path.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | LoadFontAsyncTask.Callback | A interface for listening finish event | |||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.os.AsyncTask
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
LoadFontAsyncTask(Context context, Set<String> whiteListFonts)
Class constructor
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
setCallback(LoadFontAsyncTask.Callback callback)
Sets the callback listener.
| ||||||||||
| void |
setIsCustomFont(boolean isCustomFont)
Defines whether the white list font passed in is custom fonts
If true, returned result will include these fonts regardless whether system fonts were loaded
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.os.AsyncTask
| |||||||||||
From class
java.lang.Object
| |||||||||||
Class constructor
| context | The context |
|---|---|
| whiteListFonts | white list fonts |
Sets the callback listener.
Sets the callback to null when the task is cancelled.
| callback | The callback when the task is finished |
|---|
Defines whether the white list font passed in is custom fonts If true, returned result will include these fonts regardless whether system fonts were loaded