FontsContract.RequestFonts Method

Definition

Create a typeface object given a font request.

[Android.Runtime.Register("requestFonts", "(Landroid/content/Context;Landroid/provider/FontRequest;Landroid/os/Handler;Landroid/os/CancellationSignal;Landroid/provider/FontsContract$FontRequestCallback;)V", "", ApiSince=26)]
public static void RequestFonts (Android.Content.Context context, Android.Provider.FontRequest request, Android.OS.Handler handler, Android.OS.CancellationSignal? cancellationSignal, Android.Provider.FontsContract.FontRequestCallback callback);
[<Android.Runtime.Register("requestFonts", "(Landroid/content/Context;Landroid/provider/FontRequest;Landroid/os/Handler;Landroid/os/CancellationSignal;Landroid/provider/FontsContract$FontRequestCallback;)V", "", ApiSince=26)>]
static member RequestFonts : Android.Content.Context * Android.Provider.FontRequest * Android.OS.Handler * Android.OS.CancellationSignal * Android.Provider.FontsContract.FontRequestCallback -> unit

Parameters

context
Context

A context to be used for fetching from font provider.

request
FontRequest

A FontRequest object that identifies the provider and query for the request. May not be null.

handler
Handler

A handler to be processed the font fetching.

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.

callback
FontsContract.FontRequestCallback

A callback that will be triggered when results are obtained. May not be null.

Attributes

Remarks

Java documentation for android.provider.FontsContract.requestFonts(android.content.Context, android.provider.FontRequest, android.os.Handler, android.os.CancellationSignal, android.provider.FontRequestCallback).

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.

Applies to