belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
FontsContractCompat.FontFamilyResult
public
static
class
FontsContractCompat.FontFamilyResult
extends Object
java.lang.Object | |
↳ | android.support.v4.provider.FontsContractCompat.FontFamilyResult |
Object returned from fetchFonts(Context, CancellationSignal, FontRequest)
.
Summary
Constants | |
---|---|
int |
STATUS_OK
Constant represents that the font was successfully retrieved. |
int |
STATUS_UNEXPECTED_DATA_PROVIDED
Constant represents that the provider returns unexpected data. |
int |
STATUS_WRONG_CERTIFICATES
Constant represents that the given certificate was not matched with the provider's signature. |
Public methods | |
---|---|
FontInfo[]
|
getFonts()
|
int
|
getStatusCode()
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Constants
STATUS_OK
int STATUS_OK
Constant represents that the font was successfully retrieved. Note that when this value
is set and getFonts()
returns an empty array, it means there were no fonts
matching the given query.
Constant Value: 0 (0x00000000)
STATUS_UNEXPECTED_DATA_PROVIDED
int STATUS_UNEXPECTED_DATA_PROVIDED
Constant represents that the provider returns unexpected data. getFonts()
returns
null if this status was set. For example, this value is set when the font provider
gives invalid format of variation settings.
Constant Value: 2 (0x00000002)
STATUS_WRONG_CERTIFICATES
int STATUS_WRONG_CERTIFICATES
Constant represents that the given certificate was not matched with the provider's
signature. getFonts()
returns null if this status was set.
Constant Value: 1 (0x00000001)