FontFamilyResult
open classFontFamilyResult
kotlin.Any | |
↳ | android.provider.FontsContract.FontFamilyResult |
Object returned from fetchFonts
.
Summary
Constants | |
---|---|
static Int |
Constant represents that the font was successfully retrieved. |
static Int |
Constant represents that the fetching font data was rejected by system. |
static Int |
Constant represents that the provider returns unexpected data. |
static Int |
Constant represents that the given certificate was not matched with the provider's signature. |
Public methods | |
---|---|
open Array<FontsContract.FontInfo!> |
getFonts() |
open Int |
Constants
STATUS_OK
static valSTATUS_OK: Int
Deprecated: Deprecated in Java.
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.
Value: 0
STATUS_REJECTED
static valSTATUS_REJECTED: Int
Deprecated: Deprecated in Java.
Constant represents that the fetching font data was rejected by system. This happens if the passed context is restricted.
Value: 3
STATUS_UNEXPECTED_DATA_PROVIDED
static valSTATUS_UNEXPECTED_DATA_PROVIDED: Int
Deprecated: Deprecated in Java.
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.
Value: 2
STATUS_WRONG_CERTIFICATES
static valSTATUS_WRONG_CERTIFICATES: Int
Deprecated: Deprecated in Java.
Constant represents that the given certificate was not matched with the provider's signature. getFonts
returns null if this status was set.
Value: 1
Public methods
getFonts
open fungetFonts(): Array<FontsContract.FontInfo!>
Deprecated: Deprecated in Java.
Return | |
---|---|
Array<FontsContract.FontInfo!> |
This value cannot be null . |
getStatusCode
open fungetStatusCode(): Int
Deprecated: Deprecated in Java.