FontRequest

constructor(@NonNull providerAuthority: @NonNull String, @NonNull providerPackage: @NonNull String, @NonNull query: @NonNull String, @NonNull certificates: @NonNull List<List<Array<Byte>>>)

Parameters

providerAuthority

The authority of the Font Provider to be used for the request.

query

The query to be sent over to the provider. Refer to your font provider's documentation on the format of this string.

providerPackage

The package for the Font Provider to be used for the request. This is used to verify the identity of the provider.

certificates

The list of sets of hashes for the certificates the provider should be signed with. This is used to verify the identity of the provider. Each set in the list represents one collection of signature hashes. Refer to your font provider's documentation for these values.


constructor(@NonNull providerAuthority: @NonNull String, @NonNull providerPackage: @NonNull String, @NonNull query: @NonNull String, @NonNull certificates: @NonNull List<List<Array<Byte>>>, @Nullable variationSettings: @Nullable String)

Parameters

providerAuthority

The authority of the Font Provider to be used for the request.

query

The query to be sent over to the provider. Refer to your font provider's documentation on the format of this string.

providerPackage

The package for the Font Provider to be used for the request. This is used to verify the identity of the provider.

certificates

The list of sets of hashes for the certificates the provider should be signed with. This is used to verify the identity of the provider. Each set in the list represents one collection of signature hashes. Refer to your font provider's documentation for these values.

variationSettings

String specifying the font variation settings (e.g. standard axes like weight, width, and slant, or custom axes) to be applied to a variable font when it is loaded. See setFontVariationSettings for more information about the format of the string. Supported on API 26 (Android O) and above. Note that these settings will only be effective if the font provider actually returns a variable font.


constructor(@NonNull providerAuthority: @NonNull String, @NonNull providerPackage: @NonNull String, @NonNull query: @NonNull String, @ArrayRes certificates: Int)

Parameters

providerAuthority

The authority of the Font Provider to be used for the request.

query

The query to be sent over to the provider. Refer to your font provider's documentation on the format of this string.

providerPackage

The package for the Font Provider to be used for the request. This is used to verify the identity of the provider.

certificates

A resource array with the list of sets of hashes for the certificates the provider should be signed with. This is used to verify the identity of the provider. Each set in the list represents one collection of signature hashes. Refer to your font provider's documentation for these values.


constructor(@NonNull providerAuthority: @NonNull String, @NonNull providerPackage: @NonNull String, @NonNull query: @NonNull String, @ArrayRes certificates: Int, @Nullable variationSettings: @Nullable String)

Parameters

providerAuthority

The authority of the Font Provider to be used for the request.

query

The query to be sent over to the provider. Refer to your font provider's documentation on the format of this string.

providerPackage

The package for the Font Provider to be used for the request. This is used to verify the identity of the provider.

certificates

A resource array with the list of sets of hashes for the certificates the provider should be signed with. This is used to verify the identity of the provider. Each set in the list represents one collection of signature hashes. Refer to your font provider's documentation for these values.

variationSettings

String specifying the font variation settings (e.g. standard axes like weight, width, and slant, or custom axes) to be applied to a variable font when it is loaded. See setFontVariationSettings for more information about the format of the string. Supported on API 26 (Android O) and above. Note that these settings will only be effective if the font provider actually returns a variable font.


constructor(@NonNull providerAuthority: @NonNull String, @NonNull providerPackage: @NonNull String, @NonNull query: @NonNull String, @NonNull certificates: @NonNull List<List<Array<Byte>>>, @Nullable systemFont: @Nullable String, @Nullable variationSettings: @Nullable String)