public class

LoadFontAsyncTask

extends CustomAsyncTask<Params, Progress, Result>
java.lang.Object
   ↳ android.os.AsyncTask<Params, Progress, Result>
     ↳ com.pdftron.pdf.utils.CustomAsyncTask<Params, Progress, Result>
       ↳ com.pdftron.pdf.asynctask.LoadFontAsyncTask

Class Overview

Async Task for loading fonts in system path.

Summary

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.
[Expand]
Inherited Methods
From class android.os.AsyncTask
From class java.lang.Object

Public Constructors

public LoadFontAsyncTask (Context context, Set<String> whiteListFonts)

Class constructor

Parameters
context The context
whiteListFonts white list fonts

Public Methods

public void setCallback (LoadFontAsyncTask.Callback callback)

Sets the callback listener. Sets the callback to null when the task is cancelled.

Parameters
callback The callback when the task is finished