public class

FontsContractCompat.FontFamilyResult

extends java.lang.Object

 java.lang.Object

↳androidx.core.provider.FontsContractCompat.FontFamilyResult

Overview

Object returned from FontsContractCompat.fetchFonts(Context, CancellationSignal, FontRequest).

Summary

Fields
public static final intSTATUS_OK

Constant represents that the font was successfully retrieved.

public static final intSTATUS_UNEXPECTED_DATA_PROVIDED

Constant represents that the provider returns unexpected data.

public static final intSTATUS_WRONG_CERTIFICATES

Constant represents that the given certificate was not matched with the provider's signature.

Constructors
publicFontFamilyResult(int statusCode, FontsContractCompat.FontInfo fonts[])

Methods
public FontsContractCompat.FontInfogetFonts()

public intgetStatusCode()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int STATUS_OK

Constant represents that the font was successfully retrieved. Note that when this value is set and FontsContractCompat.FontFamilyResult.getFonts() returns an empty array, it means there were no fonts matching the given query.

public static final int STATUS_WRONG_CERTIFICATES

Constant represents that the given certificate was not matched with the provider's signature. FontsContractCompat.FontFamilyResult.getFonts() returns null if this status was set.

public static final int STATUS_UNEXPECTED_DATA_PROVIDED

Constant represents that the provider returns unexpected data. FontsContractCompat.FontFamilyResult.getFonts() returns null if this status was set. For example, this value is set when the font provider gives invalid format of variation settings.

Constructors

public FontFamilyResult(int statusCode, FontsContractCompat.FontInfo fonts[])

Deprecated: Not being used by any cross library, and should not be used, internal implementation detail.

Methods

public int getStatusCode()