Megosztás a következőn keresztül:


FontsContract.FetchFonts(Context, CancellationSignal, FontRequest) Method

Definition

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

Java documentation for android.provider.FontsContract.fetchFonts(android.content.Context, android.os.CancellationSignal, android.provider.FontRequest).

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