public class

FontRequestEmojiCompatConfig.FontProviderHelper

extends java.lang.Object

 java.lang.Object

↳androidx.emoji2.text.FontRequestEmojiCompatConfig.FontProviderHelper

Overview

Delegate class for mocking FontsContractCompat.fetchFonts.

Summary

Constructors
publicFontProviderHelper()

Methods
public TypefacebuildTypeface(Context context, FontsContractCompat.FontInfo font)

Calls FontsContractCompat.buildTypeface.

public FontsContractCompat.FontFamilyResultfetchFonts(Context context, FontRequest request)

Calls FontsContractCompat.fetchFonts.

public voidregisterObserver(Context context, Uri uri, ContentObserver observer)

Calls Context.getContentObserver().registerObserver

public voidunregisterObserver(Context context, ContentObserver observer)

Calls Context.getContentObserver().unregisterObserver

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public FontProviderHelper()

Methods

public FontsContractCompat.FontFamilyResult fetchFonts(Context context, FontRequest request)

Calls FontsContractCompat.fetchFonts.

public Typeface buildTypeface(Context context, FontsContractCompat.FontInfo font)

Calls FontsContractCompat.buildTypeface.

public void registerObserver(Context context, Uri uri, ContentObserver observer)

Calls Context.getContentObserver().registerObserver

public void unregisterObserver(Context context, ContentObserver observer)

Calls Context.getContentObserver().unregisterObserver