sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
core
/
androidx.core.provider
/
FontsContractCompat
/
FontFamilyResult
Font
Family
Result
open
class
FontFamilyResult
(
source
)
Object returned from
fetchFonts
.
Members
Constructors
Font
Family
Result
Link copied to clipboard
@
RestrictTo
(
value
=
LIBRARY_GROUP_PREFIX
)
constructor
(
statusCode
:
Int
,
@
Nullable
fonts
:
Array
<
FontsContractCompat.FontInfo
>
)
Properties
STATUS_
OK
Link copied to clipboard
val
STATUS_OK
:
Int
=
0
Constant represents that the font was successfully retrieved.
STATUS_
UNEXPECTED_
DATA_
PROVIDED
Link copied to clipboard
val
STATUS_UNEXPECTED_DATA_PROVIDED
:
Int
=
2
Constant represents that the provider returns unexpected data.
STATUS_
WRONG_
CERTIFICATES
Link copied to clipboard
val
STATUS_WRONG_CERTIFICATES
:
Int
=
1
Constant represents that the given certificate was not matched with the provider's signature.
Functions
get
Fonts
Link copied to clipboard
open
fun
getFonts
(
)
:
Array
<
FontsContractCompat.FontInfo
>
For a single request, returns an array of the fonts making up the family.
get
Fonts
With
Fallbacks
Link copied to clipboard
@
NonNull
open
fun
getFontsWithFallbacks
(
)
:
List
<
Array
<
FontsContractCompat.FontInfo
>
>
Returns a list of arrays of fonts for each font family requested, in order.
get
Status
Code
Link copied to clipboard
open
fun
getStatusCode
(
)
:
Int