FontsContract.FetchFonts(Context, CancellationSignal, FontRequest) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fetch fonts given a font request.
[Android.Runtime.Register("fetchFonts", "(Landroid/content/Context;Landroid/os/CancellationSignal;Landroid/provider/FontRequest;)Landroid/provider/FontsContract$FontFamilyResult;", "", ApiSince=26)]
public static Android.Provider.FontsContract.FontFamilyResult FetchFonts (Android.Content.Context context, Android.OS.CancellationSignal? cancellationSignal, Android.Provider.FontRequest request);
[<Android.Runtime.Register("fetchFonts", "(Landroid/content/Context;Landroid/os/CancellationSignal;Landroid/provider/FontRequest;)Landroid/provider/FontsContract$FontFamilyResult;", "", ApiSince=26)>]
static member FetchFonts : Android.Content.Context * Android.OS.CancellationSignal * Android.Provider.FontRequest -> Android.Provider.FontsContract.FontFamilyResult
Parameters
- context
- Context
A Context
to be used for fetching fonts.
- cancellationSignal
- CancellationSignal
A signal to cancel the operation in progress, or null if none. If
the operation is canceled, then android.os.OperationCanceledException
will be thrown when the
query is executed.
- request
- FontRequest
A FontRequest
object that identifies the provider and query for the
request.
Returns
FontFamilyResult
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.