belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
FontsContractCompat.FontRequestCallback
public
static
class
FontsContractCompat.FontRequestCallback
extends Object
java.lang.Object | |
↳ | android.support.v4.provider.FontsContractCompat.FontRequestCallback |
Interface used to receive asynchronously fetched typefaces.
Summary
Constants | |
---|---|
int |
FAIL_REASON_FONT_LOAD_ERROR
Constant returned by |
int |
FAIL_REASON_FONT_NOT_FOUND
Constant returned by |
int |
FAIL_REASON_FONT_UNAVAILABLE
Constant returned by |
int |
FAIL_REASON_MALFORMED_QUERY
Constant returned by |
int |
FAIL_REASON_PROVIDER_NOT_FOUND
Constant returned by |
int |
FAIL_REASON_SECURITY_VIOLATION
Constant that signals that the font was not loaded due to security issues. |
int |
FAIL_REASON_WRONG_CERTIFICATES
Constant returned by |
Public constructors | |
---|---|
FontsContractCompat.FontRequestCallback()
|
Public methods | |
---|---|
void
|
onTypefaceRequestFailed(int reason)
Called when a Typeface request done via |
void
|
onTypefaceRetrieved(Typeface typeface)
Called then a Typeface request done via |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
FAIL_REASON_FONT_LOAD_ERROR
int FAIL_REASON_FONT_LOAD_ERROR
Constant returned by onTypefaceRequestFailed(int)
signaling that the font
returned by the provider was not loaded properly.
Constant Value: -3 (0xfffffffd)
FAIL_REASON_FONT_NOT_FOUND
int FAIL_REASON_FONT_NOT_FOUND
Constant returned by onTypefa