FontsContract.RequestFonts 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.
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
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.