FontsContract.FontRequestCallback.OnTypefaceRequestFailed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when a Typeface request done via #requestFonts
} fails.
[Android.Runtime.Register("onTypefaceRequestFailed", "(I)V", "GetOnTypefaceRequestFailed_IHandler", ApiSince=26)]
public virtual void OnTypefaceRequestFailed (Android.Provider.FontRequestFailureReason reason);
[<Android.Runtime.Register("onTypefaceRequestFailed", "(I)V", "GetOnTypefaceRequestFailed_IHandler", ApiSince=26)>]
abstract member OnTypefaceRequestFailed : Android.Provider.FontRequestFailureReason -> unit
override this.OnTypefaceRequestFailed : Android.Provider.FontRequestFailureReason -> unit
Parameters
- reason
- FontRequestFailureReason
One of #FAIL_REASON_PROVIDER_NOT_FOUND
,
#FAIL_REASON_FONT_NOT_FOUND
,
#FAIL_REASON_FONT_LOAD_ERROR
,
#FAIL_REASON_FONT_UNAVAILABLE
or
#FAIL_REASON_MALFORMED_QUERY
if returned by the system. May also be
a positive value greater than 0 defined by the font provider as an
additional error code. Refer to the provider's documentation for more
information on possible returned error codes.
- Attributes
Remarks
Called when a Typeface request done via #requestFonts
} fails.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.